// 文档 https://github.com/hooke007/MPV_lazy/wiki/4_GLSL

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!WIDTH LUMA.w 3 *
//!HEIGHT LUMA.h 3 *
//!COMPONENTS 1
//!BIND LUMA
//!SAVE LANCZOS3
//!DESC [AiUpscale_Medium_3x_LineArt] lanczos3

#define FIX(c)		max(abs(c), 1e-5)
#define PI		3.141592653

vec3 weight3(float x)
{
    vec3 s = FIX(2.0 * PI * vec3(x - 1.5, x - 0.5, x + 0.5));
    return sin(s) * sin(s / 3.0) / (s * s);
}

float line_run(float ypos, vec3 xpos1, vec3 xpos2, vec3 linetaps1, vec3 linetaps2)
{
    return float(LUMA_tex(vec2(xpos1.r, ypos))) * linetaps1.r + float(LUMA_tex(vec2(xpos1.g, ypos))) * linetaps2.r + float(LUMA_tex(vec2(xpos1.b, ypos))) * linetaps1.g + float(LUMA_tex(vec2(xpos2.r, ypos))) * linetaps2.g + float(LUMA_tex(vec2(xpos2.g, ypos))) * linetaps1.b + float(LUMA_tex(vec2(xpos2.b, ypos))) * linetaps2.b;
}

vec4 hook()
{
    vec2 pos = LUMA_pos + LUMA_pt * 0.5;
    vec2 f = fract(pos / LUMA_pt);

    vec3 linetaps1 = weight3(0.5 - f.x * 0.5);
    vec3 linetaps2 = weight3(1.0 - f.x * 0.5);
    vec3 columntaps1 = weight3(0.5 - f.y * 0.5);
    vec3 columntaps2 = weight3(1.0 - f.y * 0.5);

    float suml = dot(linetaps1, vec3(1.0)) + dot(linetaps2, vec3(1.0));
    float sumc = dot(columntaps1, vec3(1.0)) + dot(columntaps2, vec3(1.0));
    linetaps1 /= suml;
    linetaps2 /= suml;
    columntaps1 /= sumc;
    columntaps2 /= sumc;

    vec2 xystart = (-2.5 - f) * LUMA_pt + pos;
    vec3 xpos1 = vec3(xystart.x, xystart.x + LUMA_pt.x, xystart.x + LUMA_pt.x * 2.0);
    vec3 xpos2 = vec3(xystart.x + LUMA_pt.x * 3.0, xystart.x + LUMA_pt.x * 4.0, xystart.x + LUMA_pt.x * 5.0);

    return vec4(line_run(xystart.y, xpos1, xpos2, linetaps1, linetaps2) * columntaps1.r + line_run(xystart.y + LUMA_pt.y, xpos1, xpos2, linetaps1, linetaps2) * columntaps2.r + line_run(xystart.y + LUMA_pt.y * 2.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps1.g + line_run(xystart.y + LUMA_pt.y * 3.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps2.g + line_run(xystart.y + LUMA_pt.y * 4.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps1.b + line_run(xystart.y + LUMA_pt.y * 5.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps2.b, 0, 0, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE1
//!DESC [AiUpscale_Medium_3x_LineArt] feature map 1

vec4 hook()
{
vec4 res = vec4(-0.427696287631989,0.051743309944868,-0.469036012887955,-0.000392628775444);
res += vec4(-0.012341992929578,0.041055776178837,-0.047379855066538,0.013157699257135) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.011359545402229,-0.046976130455732,0.109803378582001,-0.028304064646363) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.043954052031040,0.062455628067255,0.728311479091644,0.025177400559187) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.063182212412357,0.057151496410370,0.307339161634445,0.009618080221117) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.017227929085493,-0.057018592953682,-0.006184047553688,-0.027005614712834) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.075648024678230,-0.040447458624840,0.013872098177671,0.008539139293134) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.117298834025860,-0.142840415239334,-0.181118324398994,0.003668557154015) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.062434595078230,-0.052375711500645,-0.514622747898102,-0.048781108111143) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.009575911797583,0.054084997624159,0.557650864124298,0.014361329376698) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.021875917911530,0.220164954662323,-0.009399872273207,0.019667442888021) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.070821776986122,0.000291836797260,0.036721922457218,0.041963640600443) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.758076965808868,-0.219888389110565,-0.027244888246059,-0.113232947885990) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.292349934577942,-0.424165248870850,-0.378336966037750,0.641330063343048) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.332418590784073,0.114011846482754,-0.054714988917112,0.377737611532211) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.025603331625462,0.297233104705811,-0.005987049546093,-0.098391480743885) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.009410646744072,0.023265896365047,-0.016398176550865,-0.009943295270205) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(0.300682336091995,0.049304518848658,0.051817528903484,0.082052119076252) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.253406882286072,0.021336026489735,-0.057442270219326,-0.601796686649323) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.134748369455338,0.156035602092743,0.017631286755204,-0.417859584093094) * float(LUMA_texOff(vec2(1,1)));
res += vec4(-0.037413723766804,-0.174718543887138,-0.000910253205802,0.115426063537598) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.015314831398427,-0.053882192820311,0.010802168399096,-0.043014891445637) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.007501987274736,-0.057573948055506,0.009395815432072,0.035043586045504) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.019958171993494,0.030362199991941,-0.018247628584504,0.000650341040455) * float(LUMA_texOff(vec2(2,0)));
res += vec4(-0.067710801959038,0.041356898844242,-0.026294756680727,0.001432591350749) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.070807524025440,0.050014797598124,0.014293126761913,-0.005680652335286) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(-0.007736743427813,0.645556509494781,-0.030627498403192,-0.374183624982834) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE2
//!DESC [AiUpscale_Medium_3x_LineArt] feature map 2

vec4 hook()
{
vec4 res = vec4(0.047207396477461,-0.023949429392815,0.057626500725746,0.275504469871521);
res += vec4(-0.123023442924023,-0.081757016479969,0.036692138761282,-0.051107052713633) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.008098736405373,0.140226826071739,0.028092445805669,-0.016103036701679) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.059438455849886,-0.284137874841690,-0.046949420124292,0.114332877099514) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.075184337794781,0.211285948753357,-0.166295588016510,-0.067030444741249) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.115133047103882,-0.043483342975378,0.014773187227547,0.026794813573360) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.089248917996883,0.136722803115845,-0.099079437553883,0.049387127161026) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.249390944838524,0.030249722301960,0.051428072154522,0.106503710150719) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.430032968521118,0.204442098736763,0.148088812828064,0.018380485475063) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.162097916007042,-0.180522546172142,-0.348551630973816,0.109592854976654) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.004329374525696,-0.109198197722435,0.009647402912378,-0.056719839572906) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(0.057125262916088,-0.089944370090961,0.050363879650831,0.006588259711862) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.233160153031349,-0.290169507265091,0.086331792175770,-0.022032154724002) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.788680374622345,-0.074421934783459,0.131818458437920,-0.347517222166061) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.190874516963959,0.498671323060989,0.128555387258530,-0.069950990378857) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.001904858741909,-0.018728861585259,-0.058940876275301,0.025315703824162) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.084913037717342,-0.018317749723792,0.071965441107750,0.043647576123476) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.015329974703491,0.023672467097640,0.143139645457268,0.036334969103336) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.119103081524372,0.008637773804367,-0.571472883224487,-0.192238479852676) * float(LUMA_texOff(vec2(1,0)));
res += vec4(0.069772928953171,0.008181970566511,0.076743647456169,-0.269648641347885) * float(LUMA_texOff(vec2(1,1)));
res += vec4(-0.031238462775946,0.047719910740852,0.036555491387844,0.027584925293922) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.029285863041878,0.014140633866191,-0.054447755217552,0.027563404291868) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.134201854467392,-0.005848652683198,0.037685830146074,-0.123567640781403) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.026131214573979,0.010685260407627,0.123743206262589,0.077202193439007) * float(LUMA_texOff(vec2(2,0)));
res += vec4(-0.019353680312634,-0.121296495199203,0.039079852402210,-0.008862582966685) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.118612788617611,0.056154347956181,-0.102602876722813,-0.003004105063155) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.956664323806763,0.391101688146591,0.038120940327644,0.298868775367737) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE3
//!DESC [AiUpscale_Medium_3x_LineArt] feature map 3

vec4 hook()
{
vec4 res = vec4(0.024719830602407,-0.707654774188995,-0.530290246009827,-0.011935355141759);
res += vec4(-0.019977498799562,-0.011767573654652,-0.002723664510995,0.013600490987301) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.012536254711449,-0.027528444305062,-0.026905136182904,0.206486091017723) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.035034153610468,-0.011146364733577,0.043943256139755,0.086494058370590) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.015004632063210,0.015722654759884,0.039460550993681,-0.196825399994850) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.031291909515858,0.009368726983666,-0.036344863474369,0.119301535189152) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.002205995842814,0.019630320370197,-0.002356018871069,-0.019527044147253) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.063376702368259,0.126165032386780,-0.019864950329065,0.098818123340607) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.129143342375755,0.017601927742362,-0.084525994956493,-0.286432981491089) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.234751150012016,-0.051981311291456,-0.064308248460293,0.016359487548470) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.047180425375700,-0.021882504224777,0.027914000675082,-0.134220659732819) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.033796239644289,-0.040828853845596,0.082757771015167,0.077208042144775) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.098472006618977,-0.139107331633568,0.184883698821068,-0.430909782648087) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.917006969451904,0.123296104371548,0.604932129383087,0.439798623323441) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.406852722167969,0.015007924288511,0.090815745294094,0.297781407833099) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.061332106590271,-0.003786938497797,-0.022694973275065,-0.136502385139465) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.002599478000775,0.110110767185688,-0.066645465791225,-0.075986623764038) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.111401647329330,0.882669210433960,-0.227069810032845,0.052797563374043) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.268365532159805,-0.152856051921844,0.437873244285583,-0.240645304322243) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.078670226037502,0.033640354871750,-0.206975042819977,-0.038736179471016) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.038151156157255,0.019793525338173,0.054949123412371,0.080031462013721) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.047692716121674,-0.054558172821999,-0.007400962058455,-0.036953262984753) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.001175521989353,0.057865351438522,0.039404865354300,0.055257450789213) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.047586467117071,-0.016332045197487,-0.018444718793035,0.147301912307739) * float(LUMA_texOff(vec2(2,0)));
res += vec4(-0.008926416747272,0.009763640351593,0.042097136378288,-0.069249600172043) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.033918000757694,-0.008085479028523,-0.033487994223833,0.011245210655034) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.270129561424255,-0.022056572139263,0.399950295686722,0.899755239486694) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE4
//!DESC [AiUpscale_Medium_3x_LineArt] feature map 4

vec4 hook()
{
vec4 res = vec4(0.363314777612686,0.042704399675131,0.158278346061707,0.277351349592209);
res += vec4(-0.019091097638011,0.034509703516960,-0.021757654845715,0.060721285641193) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.030962031334639,-0.064393572509289,0.000308842572849,-0.150677934288979) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.118290759623051,0.054418686777353,-0.029758144170046,0.057715859264135) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.015938756987453,-0.038680553436279,-0.007205987349153,-0.106962859630585) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.009302400983870,0.019886884838343,-0.027941573411226,0.049905747175217) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.064869061112404,0.026059392839670,0.014238587580621,-0.004709950648248) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.043632164597511,-0.206114158034325,-0.031338922679424,-0.007074756082147) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-1.616096258163452,0.130733534693718,-0.114007540047169,0.199290543794632) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.018100528046489,0.003459946252406,-0.122911266982555,0.022118665277958) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.010570691898465,-0.016972376033664,0.070559427142143,-0.012672935612500) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.001030452200212,-0.136909991502762,-0.155055642127991,0.042538139969110) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.250984460115433,-0.569953382015228,-0.110556505620480,-0.306681424379349) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.080608159303665,0.662477970123291,-0.370614081621170,-0.487543910741806) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.017735747620463,0.109729729592800,0.200603589415550,-0.390077859163284) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.022494262084365,0.002058250596747,-0.202570900321007,-0.066952154040337) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.013168529607356,0.042808786034584,0.013895419426262,-0.079385034739971) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.035082068294287,-0.153381586074829,0.071236804127693,-0.249240860342979) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.025619596242905,0.178763940930367,0.331324011087418,-0.174875929951668) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.020433660596609,-0.038744769990444,0.038702152669430,-0.104170478880405) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.045110478997231,-0.024290259927511,0.060015752911568,-0.024793937802315) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.005900140851736,0.008246566168964,0.138595208525658,0.038270104676485) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.079498082399368,-0.038740221410990,-0.118042431771755,0.084870271384716) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.006266606040299,0.006909582298249,0.218625932931900,-0.079336032271385) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.062818862497807,-0.011860952712595,-0.027959680184722,0.009909798391163) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.042276039719582,0.008489075116813,-0.037366356700659,0.070627994835377) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(-0.000526312738657,-0.442004412412643,0.691829085350037,0.284781247377396) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE5
//!DESC [AiUpscale_Medium_3x_LineArt] feature map 5

vec4 hook()
{
vec4 res = vec4(0.052459813654423,0.028308024629951,0.263551950454712,0.005932832602412);
res += vec4(-0.005126772448421,-0.011567877605557,-0.001383069669828,-0.001295973313972) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.032867722213268,-0.062163744121790,0.038808606564999,-0.095942065119743) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.067922428250313,0.049401544034481,-0.050347592681646,0.082507058978081) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.061245728284121,0.017823090776801,0.062295839190483,0.151547059416771) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.032735213637352,-0.014561172574759,-0.029336376115680,-0.034555193036795) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(-0.064973607659340,0.000807863485534,0.010492487810552,0.069724328815937) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.145992338657379,-0.049731556326151,-0.034558389335871,0.514540672302246) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.122806876897812,0.112962707877159,-0.059659801423550,-0.893619775772095) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.015715276822448,-0.123749487102032,0.005908428225666,-0.542439043521881) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.022660810500383,-0.051737081259489,0.023385103791952,0.153060942888260) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(0.144231095910072,0.076299905776978,0.070149041712284,-0.015976672992110) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.699097394943237,0.096355929970741,-0.060920950025320,0.019778231158853) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.640341103076935,0.746685385704041,-0.109010025858879,0.134744092822075) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.208443388342857,-0.248757004737854,-2.142746925354004,0.096900746226311) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.008520347066224,0.156126499176025,0.063596270978451,0.011593570001423) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.044882390648127,0.012677742168307,-0.008043498732150,-0.037356082350016) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(0.285940587520599,0.065924108028412,-0.063125528395176,-0.014560457319021) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.218470066785812,-0.679023563861847,0.381455153226852,0.090157903730869) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.014157600700855,-0.447231590747833,0.068428598344326,0.053305774927139) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.029440188780427,-0.110804833471775,0.028222978115082,0.026813164353371) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.014176492579281,0.002531837439165,-0.026994563639164,-0.028126930817962) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.037511702626944,-0.109717875719070,0.015371065586805,-0.019909350201488) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.090856626629829,0.102220550179482,-0.025677248835564,0.100675739347935) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.059504535049200,0.060711257159710,-0.050574537366629,0.013492151163518) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.018979778513312,-0.006547683849931,-0.022920688614249,-0.014196374453604) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(-0.294292956590652,-0.004117403179407,0.004448399879038,0.005141398869455) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE6
//!DESC [AiUpscale_Medium_3x_LineArt] feature map 6

vec4 hook()
{
vec4 res = vec4(0.047919873148203,-0.797000885009766,-0.164906859397888,-0.038393184542656);
res += vec4(0.027431923896074,-0.015530244447291,-0.027253221720457,-0.110007837414742) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.048161610960960,0.031341955065727,-0.124615386128426,0.106854654848576) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.086384654045105,-0.031984098255634,0.096867769956589,-0.166513860225677) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.003109298646450,-0.010207097046077,0.101190514862537,0.057192206382751) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.003225369146094,0.004489872138947,-0.040603820234537,0.104706265032291) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.040010552853346,0.025282284244895,-0.025317884981632,-0.041292622685432) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.178433150053024,-0.059935905039310,0.217986166477203,0.126935079693794) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.663490176200867,0.031166560947895,-0.133134990930557,-0.025048974901438) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.236477375030518,-0.050869930535555,-0.147162407636642,-0.249548733234406) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.015352791175246,-0.004641867708415,0.044949438422918,0.100967004895210) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.042395386844873,0.021460076794028,0.185321986675262,-0.039640299975872) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.239894285798073,-0.168432965874672,-0.597356319427490,-0.259743124246597) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.613398849964142,0.847807049751282,0.941047251224518,0.329283565282822) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.228330597281456,0.346065253019333,-0.252845525741577,0.189814656972885) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.034065622836351,-0.071034595370293,0.203132793307304,-0.060768920928240) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.010342217050493,-0.016530022025108,-0.130507260560989,0.207604363560677) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.055194903165102,0.048211310058832,0.240578413009644,-0.059335481375456) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.034168601036072,-0.032918345183134,-0.306436955928802,0.081989958882332) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.028770253062248,0.005498663056642,0.139352515339851,-0.289803534746170) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.047701690346003,0.042025413364172,-0.109493196010590,-0.051529575139284) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.017368435859680,-0.000661703117657,0.013464198447764,-0.019149709492922) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.078540220856667,-0.006470172666013,-0.036490209400654,-0.014296834357083) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.088132843375206,0.014631474390626,0.192630797624588,-0.175157219171524) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.029506383463740,-0.009093833155930,-0.088191673159599,0.292208999395370) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.018007615581155,-0.008133353665471,-0.043042123317719,0.025366857647896) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.230706304311752,-0.024345846846700,1.058408379554749,0.934049546718597) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL1
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 1_1

vec4 hook()
{
vec4 res = vec4(-0.009411145932972,0.010880732908845,-0.021456897258759,-0.063831344246864);
res += mat4(0.067919626832008,-0.389833122491837,-0.006311879958957,0.074447728693485,0.056849569082260,-0.034370824694633,-0.079283952713013,0.105374701321125,-0.182253971695900,0.129456251859665,-0.003679182846099,-0.008709592744708,0.212029084563255,-0.159848690032959,0.081172555685043,-0.137197971343994) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.120921447873116,0.407185047864914,-0.280053287744522,-0.125514194369316,-0.191475704312325,-0.135723009705544,-0.032876323908567,-0.044043637812138,0.042856935411692,-0.068894609808922,-0.079593390226364,0.015100043267012,0.198466837406158,-0.043373193591833,-0.087797835469246,0.009276992641389) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.121595397591591,0.088046737015247,0.000671443296596,0.077772341668606,-0.122658118605614,-0.243464246392250,-0.161521762609482,0.221124365925789,0.205533355474472,0.030930174514651,0.031584452837706,-0.114135913550854,-0.216001212596893,-0.033934496343136,-0.087714008986950,0.275488197803497) * FEATURE1_texOff(vec2(-1,1));
res += mat4(0.014656794257462,0.567819774150848,0.116766504943371,-0.204699531197548,0.077530071139336,0.093684203922749,-0.258039772510529,-0.016481583938003,-0.178481519222260,-0.198430389165878,-0.147398650646210,-0.126107752323151,-0.165798813104630,-0.102924846112728,0.045305259525776,-0.087976425886154) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.160686790943146,-0.327831476926804,0.091695182025433,-0.334784001111984,0.052963119000196,-0.034975491464138,-0.161230519413948,-0.247646167874336,-0.032310657203197,0.100802272558212,0.201429173350334,-0.101817078888416,0.074895985424519,0.180768564343452,-0.162409991025925,-0.017168309539557) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.036097593605518,-0.105716191232204,0.291878163814545,0.239924028515816,0.180341929197311,0.038617338985205,0.034995250403881,-0.055723559111357,-0.268622398376465,0.027550149708986,-0.025815017521381,0.401779741048813,0.019135585054755,-0.272163480520248,-0.095226593315601,0.086521960794926) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.086403414607048,0.123813115060329,-0.017178852111101,0.122861884534359,0.011818787083030,0.170540526509285,-0.210551708936691,0.017455695196986,0.078603155910969,0.158505856990814,0.140615925192833,-0.058561962097883,-0.040637470781803,0.018554404377937,0.015119390562177,0.037807662039995) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.109801493585110,-0.150053679943085,0.060477063059807,-0.006713177543133,-0.005933733657002,-0.104759879410267,0.100436061620712,-0.030774140730500,0.586080849170685,0.360687911510468,-0.150880128145218,0.064462818205357,-0.143025621771812,-0.016076192259789,0.023221362382174,0.038340453058481) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.007165920920670,-0.058471050113440,-0.127793982625008,-0.075547181069851,-0.064247518777847,0.134042292833328,-0.014370155520737,0.129518985748291,-0.106837056577206,-0.443392664194107,0.297057986259460,0.270464897155762,-0.070502884685993,-0.116176776587963,-0.073768228292465,0.013904968276620) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.022689845412970,-0.292949169874191,0.023881305009127,0.234865352511406,-0.026471741497517,-0.478718638420105,-0.027951719239354,0.063511416316032,0.199739694595337,0.258675634860992,0.069327361881733,-0.089156135916710,-0.109081476926804,-0.305980235338211,0.051055800169706,-0.322541952133179) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.333454757928848,0.101713225245476,-0.144922360777855,-0.288559317588806,0.146040007472038,0.093421936035156,-0.097695037722588,-0.039971955120564,0.101855993270874,0.186791986227036,0.106097474694252,0.110973164439201,-0.446573257446289,0.076281346380711,0.159854754805565,0.246539324522018) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.153412029147148,0.227142751216888,0.039596587419510,0.095389626920223,0.013345181941986,0.191182911396027,-0.140642032027245,-0.104409188032150,-0.119996771216393,0.013975560665131,-0.000226138858125,-0.043587509542704,-0.074890367686749,-0.000610131944995,0.061313889920712,0.108930870890617) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.079861439764500,0.330005437135696,0.155270233750343,0.131634548306465,-0.041960652917624,-0.159424811601639,0.168316110968590,0.060098055750132,0.148157626390457,0.046994753181934,0.048936281353235,-0.037129983305931,0.147184938192368,-0.072662867605686,-0.167476907372475,-0.092998892068863) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.295987099409103,0.120558641850948,-0.416906863451004,-0.010895847342908,0.034654986113310,-0.021478498354554,-0.146995186805725,0.019823405891657,-0.008552387356758,-0.227504119277000,0.035909976810217,-0.021471863612533,0.044095098972321,0.015115167945623,0.075261682271957,-0.152803555130959) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.113984934985638,0.001377108972520,0.456744313240051,0.068060748279095,0.043692693114281,0.248873576521873,-0.021041722968221,-0.085069857537746,0.175113901495934,-0.104044213891029,-0.015530924312770,-0.084152981638908,0.141221493482590,0.093780614435673,0.169441699981689,0.177845448255539) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.072254054248333,-0.235141575336456,-0.198610842227936,-0.077252015471458,-0.173545658588409,0.136319860816002,0.058877814561129,-0.098956994712353,-0.168917179107666,-0.131110265851021,0.231737211346626,0.119282744824886,0.103604592382908,0.084440134465694,0.024871775880456,0.132757306098938) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.034506600350142,-0.316232681274414,0.106509797275066,0.057181794196367,0.140905261039734,0.041481673717499,0.022741667926311,-0.047314014285803,-0.058803852647543,-0.123069941997528,0.109574250876904,0.076259858906269,0.017835501581430,-0.024021364748478,-0.201369106769562,-0.122686132788658) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.070276327431202,0.077379852533340,-0.124732077121735,-0.034657008945942,0.031912922859192,-0.163971588015556,-0.023777037858963,0.112356714904308,0.089605703949928,0.231512397527695,-0.019926905632019,-0.012412738986313,-0.057592675089836,-0.029167886823416,0.008225907571614,0.107660338282585) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.098991386592388,0.186415880918503,0.035407390445471,0.030449328944087,-0.081607982516289,0.226560190320015,0.235797852277756,0.049814138561487,-0.026965418830514,0.157782673835754,-0.102319687604904,-0.053133204579353,-0.145817592740059,0.178408995270729,-0.083164848387241,-0.011747434735298) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.034033466130495,0.105430386960506,0.048720937222242,-0.098821245133877,0.070251405239105,-0.213309347629547,-0.045150950551033,-0.344116210937500,-0.274089455604553,-0.361139237880707,0.429579615592957,0.225681170821190,-0.010155359283090,0.200863599777222,0.107295773923397,-0.062567591667175) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.005261640530080,-0.135140463709831,-0.067113734781742,-0.137058123946190,0.000228664488532,-0.385940790176392,0.082722015678883,0.417846739292145,0.148456200957298,0.378532141447067,-0.463936030864716,-0.250149279832840,0.099074602127075,-0.145352169871330,0.020373258739710,0.012770738452673) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.186654925346375,-0.114542581140995,-0.164816379547119,0.132954075932503,-0.111820891499519,-0.006404034793377,-0.116766795516014,0.045005716383457,0.271769344806671,-0.160078644752502,0.019581265747547,-0.035719566047192,-0.277674317359924,-0.100040078163147,0.331376522779465,0.165091499686241) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.125785648822784,-0.225514829158783,0.668186783790588,0.012109037488699,0.222414359450340,-0.292900085449219,0.034534420818090,0.110787123441696,-0.087262488901615,-0.125330224633217,0.457848578691483,-0.066187180578709,-0.229109779000282,0.172999471426010,-0.032933644950390,-0.091009117662907) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.113594695925713,0.346293151378632,-0.267998427152634,0.056486550718546,0.332976877689362,0.630361557006836,-0.080341272056103,-0.110924951732159,-0.150709748268127,0.063945718109608,-0.323406577110291,0.084430195391178,0.269150435924530,-0.257338821887970,-0.448761045932770,-0.111855149269104) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.004351068753749,-0.259150922298431,0.067148521542549,0.066967308521271,-0.037359233945608,-0.162219062447548,0.005166343413293,-0.044218577444553,-0.086644664406776,0.121570497751236,-0.016925200819969,0.041951026767492,0.072062909603119,-0.183259323239326,-0.090703494846821,-0.008037344552577) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.170603677630424,0.033693552017212,-0.237360656261444,-0.260437160730362,-0.191244050860405,0.445062071084976,0.001103481627069,-0.028650656342506,0.137894347310066,0.167039096355438,-0.060259517282248,-0.152700394392014,0.191934257745743,0.167795240879059,0.140624165534973,0.054515913128853) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.123009979724884,0.101452648639679,0.050014842301607,0.111731737852097,-0.167189672589302,-0.190807268023491,-0.120293028652668,0.055640812963247,0.017853951081634,-0.181288480758667,0.011672709137201,0.123246088624001,0.021487971767783,-0.129740580916405,-0.086621940135956,-0.052926294505596) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.150933921337128,0.209848985075951,0.041121978312731,0.032038949429989,0.136624261736870,-0.139831379055977,0.105199038982391,0.048444654792547,-0.147806614637375,-0.348913282155991,0.229414895176888,0.023587899282575,-0.010849537327886,0.195731967687607,-0.117161087691784,-0.214634239673615) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.058251928538084,-0.159648045897484,-0.123261757194996,-0.017639361321926,0.259204357862473,-0.334671616554260,0.095053389668465,-0.012049852870405,-0.191524833440781,0.204339459538460,0.098657406866550,-0.140965268015862,-0.090452946722507,0.046382404863834,-0.076082885265350,-0.150837138295174) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.165186360478401,0.063544027507305,0.004489055369049,-0.007821438834071,0.352254152297974,0.174306988716125,-0.167377367615700,-0.419455766677856,-0.070891410112381,0.077635273337364,-0.392832845449448,0.510813415050507,-0.113008014857769,0.126258984208107,0.143268510699272,0.073916278779507) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.232994943857193,-0.324621319770813,-0.048443607985973,0.025976803153753,-0.060105103999376,-0.145811572670937,-0.024387365207076,0.074701018631458,0.110852696001530,0.518914103507996,0.270458668470383,0.028127845376730,0.076922960579395,-0.166476994752884,-0.187576487660408,-0.160849273204803) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.040565624833107,0.132576271891594,-0.046446975320578,-0.056666336953640,-0.063879899680614,0.072787165641785,-0.034533977508545,0.374046057462692,-0.073309794068336,0.265654861927032,-0.164759278297424,-0.222175493836403,0.237323015928268,0.041896034032106,-0.254479497671127,-0.121273823082447) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.125590384006500,0.159387171268463,0.012404619716108,0.456580162048340,-0.038573030382395,0.314054071903229,-0.270135492086411,-0.477893054485321,0.045237053185701,-0.246931105852127,-0.019304314628243,0.042968127876520,0.081908985972404,-0.099437795579433,0.198783501982689,0.317614912986755) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.131768986582756,0.450526446104050,0.296098768711090,0.249110117554665,-0.138519451022148,0.030943227931857,0.009817439131439,0.038837321102619,0.089427284896374,0.245961785316467,0.037795372307301,0.012822656892240,-0.007937593385577,-0.003596548223868,0.081748649477959,-0.084763936698437) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.166007116436958,-0.008523445576429,0.000459371425677,-0.366621673107147,-0.125117957592010,0.521741926670074,-0.029313934966922,0.196675300598145,-0.030734436586499,-0.200138509273529,0.039681114256382,-0.081969596445560,-0.090275928378105,-0.138567954301834,-0.075736448168755,-0.125644370913506) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.083298064768314,-0.164291262626648,-0.123623415827751,0.148536324501038,-0.008670332841575,-0.018761510029435,-0.055316757410765,-0.018026702105999,0.112200297415257,-0.312851130962372,-0.047637678682804,0.014597198925912,0.099887870252132,0.140619948506355,0.036683686077595,0.028376352041960) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.198609441518784,0.212204754352570,-0.088986150920391,-0.023534353822470,-0.141729846596718,-0.237634837627411,-0.051349617540836,-0.044258151203394,-0.404818683862686,0.057902336120605,0.110658891499043,0.015812871977687,0.149060323834419,-0.099759675562382,-0.117077842354774,0.096790485084057) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.419527232646942,0.493300348520279,-0.121790781617165,-0.134296864271164,-0.026448268443346,-0.022238992154598,0.099156461656094,-0.108218692243099,0.080006889998913,-0.181785404682159,0.289879024028778,-0.428672760725021,0.066792555153370,-0.259216576814651,0.028547590598464,-0.050329651683569) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.490622371435165,-0.228751778602600,0.069551564753056,0.760962426662445,0.022428559139371,-0.012142346240580,-0.055627178400755,-0.078907534480095,-0.048244770616293,-0.040432006120682,-0.048965912312269,0.028326440602541,-0.161037564277649,-0.099892169237137,0.064110219478607,0.022791896015406) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.164770618081093,0.227390483021736,0.087573632597923,-0.085871085524559,0.067390747368336,0.208618625998497,0.196086600422859,0.026243995875120,-0.024551881477237,-0.236687660217285,-0.200183287262917,-0.024191202595830,-0.019006974995136,-0.180046975612640,-0.016107149422169,-0.127808764576912) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.169887140393257,-0.240663379430771,-0.129556596279144,-0.096081137657166,-0.167905852198601,0.092310868203640,0.111002489924431,0.020898874849081,0.038683809340000,-0.348286658525467,0.210512563586235,0.318157941102982,0.190760508179665,-0.001020389143378,-0.137716025114059,0.061680119484663) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.081316046416759,-0.360523134469986,0.560291945934296,0.461891353130341,0.053810097277164,0.125473678112030,-0.157975897192955,-0.087513834238052,0.015535183250904,-0.020747926086187,0.049405433237553,-0.138041570782661,0.246105670928955,-0.085965663194656,0.164713382720947,-0.151291593909264) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.097459688782692,-0.171975031495094,-0.048260290175676,-0.072100512683392,0.053171690553427,0.114424347877502,0.018404353410006,-0.134810030460358,-0.183342948555946,-0.129647612571716,0.116490662097931,0.042743705213070,-0.205061197280884,-0.377730637788773,-0.205556437373161,0.103399597108364) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.089692927896976,-0.761645257472992,-0.052130375057459,-0.209585428237915,0.029887421056628,0.200790748000145,0.011015496216714,-0.052803989499807,0.013794651255012,0.134680718183517,0.095012977719307,0.093662291765213,-0.036210194230080,0.171291798353195,0.313200116157532,0.157693192362785) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.025091046467423,0.014671948738396,0.002006833907217,-0.182857587933540,0.026413016021252,-0.307898789644241,0.093651644885540,0.032718274742365,-0.042682070285082,-0.011704112403095,0.031341046094894,0.049585513770580,0.094908960163593,-0.124499723315239,0.017581561580300,-0.043033070862293) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.223109856247902,0.147316575050354,0.000987681210972,0.065993785858154,-0.115030184388161,0.145230159163475,0.249305158853531,0.069622971117496,-0.130367219448090,0.071169868111610,0.097731441259384,-0.079097986221313,0.083283752202988,-0.171102404594421,-0.233111009001732,-0.022675819694996) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.199028402566910,-0.220813915133476,0.024277608841658,-0.131616860628128,-0.381488591432571,-0.216649115085602,0.013292464427650,-0.088079661130905,0.149716228246689,-0.143605396151543,0.111320324242115,0.145268797874451,0.042078442871571,0.258445471525192,0.167127490043640,0.036563515663147) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.025359969586134,0.114674925804138,-0.023300619795918,0.247952178120613,0.192305207252502,-0.014352166093886,-0.195214852690697,-0.100164264440536,0.291072458028793,-0.174457252025604,0.110628701746464,-0.183141723275185,0.273587524890900,-0.085387296974659,-0.094077795743942,-0.089602887630463) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.188610091805458,0.148722678422928,0.019791707396507,0.214552462100983,-0.276844680309296,0.075157627463341,0.444030493497849,0.135774374008179,-0.076297178864479,-0.012169189751148,-0.156118124723434,-0.254368156194687,-0.175213262438774,-0.239095538854599,0.103921324014664,-0.133341610431671) * FEATURE6_texOff(vec2(0,-1));
res += mat4(0.318360209465027,-0.196634873747826,0.062296908348799,-0.285858124494553,-0.289586752653122,-0.618239641189575,0.021621705964208,-0.035734742879868,-0.140279009938240,-0.013401756063104,0.565199553966522,0.263228088617325,-0.171107217669487,-0.059756211936474,0.148482874035835,0.006475949194282) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.229719012975693,-0.014800890348852,0.068099990487099,-0.252180218696594,0.148650825023651,0.457375526428223,-0.106120221316814,-0.013192283920944,-0.029666222631931,0.071729309856892,-0.518981993198395,-0.103503264486790,0.080961443483829,-0.150935500860214,-0.168494999408722,0.163456633687019) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.376272886991501,-0.128014102578163,0.233530506491661,0.013528257608414,0.225685358047485,-0.115500159561634,0.004017233382910,-0.109065815806389,0.133211612701416,-0.088787943124771,-0.005651992745697,0.001293335226364,-0.028774684295058,0.254191607236862,-0.018454836681485,-0.005441078916192) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.045803159475327,-0.261255413293839,0.077786788344383,-0.011145038530231,0.360036581754684,0.227677822113037,0.135367766022682,-0.156093239784241,-0.016362557187676,0.179616957902908,-0.045396871864796,-0.062658675014973,-0.140263065695763,0.028933476656675,0.056747198104858,0.115689687430859) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.128652840852737,-0.028668239712715,0.080729782581329,-0.013327418826520,-0.191659003496170,-0.049934919923544,-0.035855524241924,0.177032172679901,-0.216596305370331,0.053870715200901,-0.079744704067707,0.114186763763428,0.099664278328419,0.195291250944138,-0.115481950342655,-0.097042664885521) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.541781961917877,-0.275318175554276,0.205382943153381,-0.819967567920685) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL2
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 1_2

vec4 hook()
{
vec4 res = vec4(0.037236396223307,0.007588776759803,0.090497985482216,0.042051650583744);
res += mat4(-0.217133074998856,-0.079807132482529,-0.041687685996294,-0.091455072164536,-0.026420786976814,-0.132948338985443,-0.229853749275208,0.028326397761703,0.193546175956726,0.006128210574389,-0.033719383180141,0.023479087278247,0.590233623981476,-0.163853228092194,-0.361471384763718,-0.006670536007732) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.059221755713224,0.104342900216579,0.073034681379795,0.114653125405312,0.026218527927995,0.038406223058701,-0.160060167312622,0.096628762781620,0.151047751307487,0.108801469206810,0.131906464695930,-0.076025001704693,0.185489729046822,-0.325598508119583,-0.014711313880980,0.076182231307030) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.095384776592255,0.061816219240427,0.160114511847496,-0.092093601822853,-0.034575879573822,0.012872613966465,-0.361133098602295,-0.150956317782402,-0.134815424680710,0.037775751203299,0.118896178901196,0.018058128654957,-0.047076929360628,-0.047056380659342,-0.071840666234493,0.024685619398952) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.025267008692026,-0.286018341779709,0.139116629958153,0.333002418279648,-0.246838167309761,0.192984431982040,0.081461235880852,-0.172776877880096,-0.049736976623535,-0.017559826374054,0.099169045686722,-0.021968007087708,-0.128646954894066,-0.072866462171078,-0.065154902637005,0.228451639413834) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.135526418685913,-0.247395202517509,-0.223228424787521,-0.001359192887321,0.306929320096970,0.025573791936040,0.009692586027086,-0.023018280044198,-0.407034546136856,-0.159753516316414,-0.458301961421967,0.338347554206848,-0.182752951979637,-1.030007243156433,-0.050180230289698,-0.021089438349009) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.053195167332888,-0.035732854157686,-0.091170139610767,0.151796579360962,-0.230432987213135,-0.035286162048578,0.240989908576012,0.128069430589676,0.221003234386444,-0.224773153662682,0.100503973662853,-0.069512128829956,-0.139904335141182,-0.378667324781418,0.069779217243195,-0.129033267498016) * FEATURE1_texOff(vec2(0,1));
res += mat4(0.043142143636942,0.348903954029083,0.010606723837554,-0.016500258818269,-0.222669512033463,-0.049776069819927,-0.066053390502930,0.100075326859951,0.030940348282456,-0.308744698762894,0.430589109659195,0.350866585969925,0.008286600932479,-0.177466943860054,0.150010839104652,0.103715479373932) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.031780429184437,0.006307167466730,0.088301271200180,-0.029214030131698,0.010085336863995,-0.283861666917801,0.065698906779289,-0.019356993958354,-0.245667442679405,0.447151750326157,-0.040340092033148,0.174276918172836,-0.218648642301559,-0.099443517625332,-0.052764870226383,0.003956427797675) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.012364736758173,0.084879726171494,-0.071498349308968,-0.146688222885132,0.152421236038208,0.022860448807478,0.096502497792244,0.037775166332722,0.078740522265434,0.292853772640228,-0.070715568959713,-0.102666355669498,0.020082339644432,-0.106186203658581,0.109951935708523,0.118180669844151) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.046383991837502,-0.036801058799028,0.178241759538651,-0.091876216232777,0.099903687834740,-0.121385179460049,0.275958180427551,-0.166415140032768,-0.093079343438148,0.039998620748520,0.279865741729736,0.044329345226288,0.166761413216591,-0.024990187957883,0.047385852783918,-0.102890767157078) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.169572860002518,-0.046111229807138,-0.092226579785347,0.041736420243979,-0.008956181816757,0.088420212268829,-0.095794364809990,0.224315121769905,0.009432213380933,0.004139126278460,-0.049981161952019,0.042609974741936,-0.110631160438061,-0.021752920001745,-0.062902107834816,-0.056313592940569) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.065292000770569,-0.030169922858477,-0.021384956315160,0.152656450867653,-0.010156688280404,0.043095614761114,0.127782598137856,0.150320693850517,-0.017464231699705,0.024189572781324,-0.067207150161266,-0.028546717017889,-0.222283557057381,-0.070981532335281,0.056954778730869,-0.067226849496365) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.037531197071075,-0.096325211226940,-0.095294833183289,0.199128851294518,-0.131551712751389,-0.243535876274109,-0.120037220418453,0.135685265064240,0.148231178522110,-0.082235887646675,0.204543352127075,-0.044532962143421,-0.034592553973198,-0.087616458535194,0.290996670722961,0.082272104918957) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.331142306327820,-0.021415593102574,0.124196819961071,0.122553259134293,0.009110714308918,0.030961357057095,-0.333541750907898,-0.115111276507378,0.030090766027570,-0.229968205094337,-0.048632625490427,-0.224233701825142,-0.035336576402187,0.098442338407040,-0.192256882786751,0.189277186989784) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.049144126474857,0.113519847393036,-0.026724480092525,-0.120297178626060,-0.036049712449312,-0.045270103961229,-0.227497413754463,0.057841580361128,-0.184732347726822,-0.018211698159575,-0.007915473543108,-0.045888438820839,0.351066589355469,-0.085647471249104,-0.046665012836456,-0.119776032865047) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.104743525385857,0.074694357812405,-0.166410446166992,-0.162667602300644,0.124315522611141,0.283568769693375,0.062238685786724,-0.042828403413296,-0.029604706913233,0.098877429962158,0.035334654152393,0.080342479050159,-0.086525939404964,-0.050374399870634,-0.170662894845009,0.158291667699814) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.004541767761111,-0.164901584386826,0.024505231529474,-0.157559975981712,-0.152098596096039,-0.315915226936340,0.096802443265915,-0.020812742412090,-0.127800166606903,0.059967815876007,-0.292177826166153,0.191774383187294,0.128708347678185,0.063705191016197,0.013172412291169,-0.130464047193527) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.213478028774261,0.120159156620502,0.177721753716469,0.028712803497910,-0.046938803046942,0.059485621750355,0.149795562028885,-0.183244004845619,-0.149687096476555,-0.061534903943539,-0.053210992366076,0.423542708158493,-0.101713098585606,0.076601102948189,0.061966408044100,0.033577535301447) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.161181479692459,0.054822057485580,-0.016950929537416,0.010942431166768,0.117630444467068,-0.093550100922585,0.022304186597466,-0.028869530186057,0.396554529666901,0.021641369909048,-0.068250745534897,0.046587415039539,-0.119792170822620,-0.034536872059107,0.047986671328545,0.021389909088612) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.325176149606705,-0.236231803894043,0.259083926677704,-0.193472981452942,0.259465873241425,-0.189474776387215,-0.288634151220322,-0.364054858684540,-0.140215218067169,-0.102845989167690,0.419566035270691,-0.259005606174469,0.287109792232513,0.000899110513274,0.069532103836536,-0.118327900767326) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.006049853283912,0.113030850887299,-0.028216680511832,0.009201828390360,-0.335399180650711,-0.264182060956955,0.087137125432491,0.250452488660812,-0.032899152487516,-0.176893442869186,0.175622537732124,-0.109735876321793,-0.054858002811670,-0.024039985612035,-0.022667150944471,-0.036232721060514) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.300294727087021,0.072019256651402,0.048079796135426,-0.281599849462509,0.144144877791405,0.249910682439804,-0.083682425320148,-0.078297078609467,-0.011872367002070,-0.060666188597679,-0.061324048787355,-0.133790507912636,0.116640940308571,-0.043578799813986,-0.019895458593965,-0.015942025929689) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.311194956302643,-0.213409215211868,-0.322971105575562,-0.140724539756775,-0.163413360714912,0.036072108894587,0.105361774563789,-0.020286552608013,-0.086158618330956,0.069813668727875,-0.285705476999283,0.131285920739174,-0.331456720829010,-0.233824566006660,0.122084774076939,0.265121340751648) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.111409649252892,-0.124971076846123,0.104964032769203,0.089958570897579,-0.189726620912552,0.510059118270874,-0.141570284962654,0.008032002486289,0.103226736187935,-0.413933932781219,-0.084658645093441,-0.047137666493654,-0.232102319598198,0.061085097491741,-0.025760322809219,-0.037170875817537) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.023228796198964,0.064630933105946,0.121407642960548,-0.101443789899349,-0.097700186073780,-0.040440984070301,-0.029891250655055,0.139173716306686,-0.011633938178420,0.119964897632599,0.140533104538918,0.115424320101738,-0.008554567582905,0.172617256641388,0.001555048278533,0.095935873687267) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.158522382378578,0.379531323909760,-0.205433994531631,0.256453216075897,0.004318964667618,0.042390607297421,-0.044850792735815,0.072534695267677,-0.039701275527477,0.398207575082779,-0.021260602399707,0.077585607767105,0.018501240760088,0.056796979159117,-0.187131673097610,0.022508405148983) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.194917514920235,0.048494618386030,0.000257817184320,0.272849261760712,-0.092311486601830,0.067512132227421,0.163449436426163,-0.150569602847099,-0.090843901038170,-0.110017627477646,-0.168360650539398,0.099253326654434,0.300116240978241,0.063063926994801,-0.065897949039936,-0.156956836581230) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.106108680367470,0.049774691462517,-0.078534409403801,0.184999749064445,0.130265220999718,0.084962852299213,0.169336512684822,0.008720634505153,-0.032554361969233,-0.099383577704430,0.080632112920284,-0.073223471641541,0.052186537533998,0.086619481444359,0.101588636636734,0.009014849551022) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.133179500699043,0.032598700374365,-0.027803201228380,-0.178141310811043,0.206594079732895,-0.174718260765076,0.107270799577236,-0.074259929358959,-0.177185148000717,0.205531388521194,-0.343953490257263,0.052414279431105,-0.100990302860737,0.016994608566165,0.135532170534134,-0.026264691725373) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.018136190250516,0.012939533218741,0.087438724935055,-0.060326371341944,-0.336371451616287,-0.015725556761026,0.066454850137234,-0.028130568563938,-0.006025721784681,-0.142400205135345,0.035826250910759,0.168565616011620,-0.071342438459396,0.167904868721962,0.004864166025072,-0.116746388375759) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.368442118167877,-0.145237430930138,-0.039483178406954,-0.303029745817184,0.067299693822861,0.076009377837181,0.085760846734047,-0.002264991868287,0.045829832553864,-0.122844293713570,0.115050837397575,0.149196073412895,-0.090335741639137,-0.020852793008089,-0.104388512670994,0.100014321506023) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.157403558492661,-0.065118193626404,-0.036193970590830,0.278620600700378,-0.142958968877792,0.027044903486967,0.145623430609703,0.031464777886868,-0.166735187172890,0.191580280661583,0.008259729482234,0.130033969879150,0.302402496337891,-0.052183825522661,-0.001637582085095,0.017779683694243) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.358280032873154,0.177121832966805,0.044476240873337,0.117764882743359,-0.515469431877136,-0.273045539855957,0.463335931301117,0.537866890430450,0.170307651162148,0.089897021651268,-0.033364024013281,-0.090384185314178,0.146436408162117,-0.134287431836128,-0.067139089107513,0.008355471305549) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.352160513401031,-0.047708716243505,0.003979604691267,0.071757026016712,-0.006897677667439,-0.139580711722374,-0.127896949648857,0.001912320149131,-0.050484262406826,0.102698192000389,0.006507663521916,0.020692788064480,0.094546876847744,-0.154698759317398,-0.059470400214195,-0.127658262848854) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.008665921166539,-0.248919919133186,0.047512356191874,0.161491140723228,-0.073681764304638,0.330258369445801,-0.190045744180679,0.151968792080879,-0.034339506179094,-0.119302004575729,0.004150980152190,-0.067725449800491,-0.045745227485895,-0.113223761320114,0.148870021104813,-0.171692952513695) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.013306265696883,0.201731190085411,-0.076826520264149,-0.275893777608871,0.229202926158905,-0.943773806095123,-0.173719272017479,-0.164094299077988,0.072640299797058,-0.162997096776962,0.101312384009361,-0.122298851609230,0.039769358932972,-0.010848867706954,0.093017391860485,0.106963373720646) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.073941916227341,-0.133874699473381,-0.194326594471931,0.099058598279953,0.106257297098637,0.142686218023300,0.199217066168785,-0.066528141498566,-0.329662412405014,-0.151680260896683,-0.299233734607697,-0.157506749033928,-0.078854732215405,-0.031911030411720,0.042354747653008,0.072273850440979) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.009528424590826,0.145813614130020,-0.507943153381348,0.131542935967445,0.041890088468790,0.188823416829109,-0.104745261371136,0.252679288387299,0.152780324220657,-0.207009449601173,0.355231225490570,-0.064687646925449,0.207558199763298,-0.002935199532658,0.136107861995697,0.073609538376331) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.025885356590152,-0.124407254159451,-0.287174761295319,0.178921401500702,-0.032024521380663,-0.004485055338591,0.015054346062243,0.061423070728779,0.008553432300687,0.200653910636902,-0.032301645725965,0.002585512585938,-0.059259075671434,-0.016425020992756,0.049184221774340,0.180589690804482) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.108399271965027,0.056309804320335,-0.168864324688911,-0.195120528340340,0.125697642564774,0.280639618635178,0.097213804721832,0.115106180310249,-0.128457099199295,0.102675631642342,-0.134483978152275,0.156664177775383,-0.246148630976677,0.091027602553368,-0.016878342255950,-0.133664757013321) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.119391858577728,-0.059131260961294,-0.202200815081596,-0.319480448961258,0.109748072922230,-0.817492246627808,-0.014686841517687,0.031477212905884,0.035525046288967,0.133843123912811,-0.155529737472534,0.054534919559956,-0.346732705831528,0.124493502080441,-0.027394186705351,0.040945388376713) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.358419686555862,0.247831702232361,-0.181271627545357,-0.563375413417816,0.106135994195938,-0.108388304710388,0.103198967874050,0.058414731174707,-0.157576844096184,-0.131890997290611,0.165439158678055,0.155977219343185,0.040331967175007,0.025657689198852,0.007316641975194,0.074736446142197) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.070614077150822,-0.000383004022297,0.200545802712440,0.068764239549637,0.086170725524426,0.023067954927683,0.040370203554630,-0.119938887655735,-0.002303097862750,-0.063990950584412,-0.403491765260696,-0.194704204797745,0.309762299060822,0.042586676776409,-0.211028262972832,0.004903164226562) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.143340483307838,-0.512265741825104,0.185817942023277,-0.068629503250122,-0.011114225722849,0.023065246641636,0.060168627649546,-0.095225498080254,-0.095179893076420,0.009070715866983,-0.115479268133640,0.042154032737017,-0.062010876834393,-0.095698013901711,-0.030872628092766,0.261890798807144) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.052907984703779,0.255512893199921,0.269061833620071,0.061367444694042,0.314752429723740,-0.089079186320305,0.020744666457176,-0.338509857654572,0.153154924511909,0.122436262667179,0.016298303380609,-0.200992271304131,-0.241996899247169,0.272094130516052,-0.093648672103882,0.102011062204838) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.010513144545257,0.145702227950096,-0.121527776122093,0.153766170144081,0.262063294649124,-0.257850408554077,0.351958781480789,-0.060615014284849,0.174990236759186,-0.050920322537422,-0.288003832101822,-0.081080429255962,0.236756309866905,0.191574856638908,-0.112371750175953,-0.161385998129845) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.077779836952686,-0.099169343709946,0.285293281078339,-0.082067832350731,0.096273012459278,-0.182197600603104,-0.013861771672964,-0.254532665014267,0.189672276377678,0.022793015465140,0.402130484580994,-0.151668652892113,-0.070668853819370,-0.075260452926159,0.200672537088394,0.084290184080601) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.054570753127337,0.084653064608574,-0.066586852073669,0.087445616722107,-0.372484356164932,-0.002096085343510,-0.190764904022217,-0.143112674355507,0.022909494116902,0.057411056011915,-0.031461779028177,-0.001937411725521,0.174755617976189,0.030525529757142,0.034530766308308,0.017897762358189) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.195140376687050,0.020256008952856,0.023833233863115,0.087167777121067,-0.310372263193130,-0.021418940275908,0.018267776817083,0.064037606120110,0.218256071209908,-0.085569009184837,-0.115160487592220,-0.072754107415676,-0.120639152824879,-0.120570555329323,0.257175058126450,-0.200805440545082) * FEATURE6_texOff(vec2(0,-1));
res += mat4(0.355720877647400,-0.047413930296898,0.389626801013947,-0.328649699687958,-0.295439839363098,0.006288849283010,0.196211442351341,0.351422280073166,-0.221958056092262,-0.147523760795593,0.093382127583027,-0.125986203551292,-0.189820513129234,-0.004754919558764,-0.166519343852997,0.122540839016438) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.043414849787951,0.117155134677887,-0.041210725903511,-0.063292823731899,-0.103979930281639,-0.349933356046677,0.167118564248085,0.032360974699259,-0.143798202276230,-0.030279848724604,0.060926012694836,0.228297501802444,0.092929027974606,-0.099548883736134,0.008635189384222,-0.040496721863747) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.094585753977299,-0.006825750693679,0.070307828485966,0.003232555696741,-0.167247995734215,0.646958410739899,-0.257583111524582,0.380306512117386,-0.199185982346535,-0.038030423223972,0.177469387650490,0.041745964437723,-0.198098167777061,0.027449283748865,-0.151422202587128,0.257323116064072) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.041140317916870,-0.690765917301178,-0.084115862846375,-0.164972931146622,0.093781247735023,0.547300279140472,-0.164694204926491,-0.044008232653141,-0.104574292898178,0.504481732845306,-0.086237244307995,0.114745736122131,0.138365566730499,0.076707586646080,-0.065743863582611,0.008670888841152) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.089676074683666,-0.119505479931831,-0.115808941423893,0.020424542948604,0.052432533353567,-0.228570774197578,0.072371795773506,-0.468631386756897,0.149188473820686,-0.183534398674965,-0.035523436963558,0.020041719079018,-0.003618975868449,-0.051866490393877,0.092141017317772,-0.090919002890587) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.001611635205336,-0.031448666006327,-0.257066041231155,-0.826914727687836) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL3
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 1_3

vec4 hook()
{
vec4 res = vec4(0.078782826662064,-0.008114216849208,0.102137506008148,0.071684777736664);
res += mat4(0.227332577109337,-0.145628944039345,0.410246431827545,0.039915245026350,-0.301281690597534,0.042545218020678,-0.095142409205437,-0.012386637739837,0.054394543170929,0.113717243075371,0.125788792967796,-0.003158768173307,0.154404953122139,0.022222831845284,-0.818361401557922,-0.264389991760254) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.068701669573784,-0.129093721508980,-0.141982182860374,0.060336731374264,-0.044368956238031,-0.240887284278870,0.062455985695124,-0.199644491076469,0.154604092240334,0.012384723871946,0.198622018098831,-0.042421501129866,-0.091932348906994,-0.122357040643692,-0.134135395288467,0.038269944489002) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.021414121612906,-0.053451608866453,0.086201883852482,0.030806254595518,0.066649243235588,0.042273521423340,0.041441000998020,0.011505044996738,-0.031479947268963,-0.085701398551464,0.140008881688118,0.053650908172131,-0.125968232750893,-0.063784666359425,-0.126273021101952,0.002902783919126) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.023578362539411,0.192280054092407,-0.009825632907450,-0.279722183942795,0.022282311692834,0.120571672916412,-0.322361469268799,-0.019167650490999,-0.261721849441528,-0.301585644483566,0.036743730306625,-0.125851228833199,-0.023432822898030,0.015609075315297,-0.729178667068481,-0.163356363773346) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.229944050312042,-0.002939017256722,-0.193025544285774,-0.058791890740395,0.158579751849174,-0.200368314981461,0.314488679170609,0.308502972126007,0.070797190070152,-0.144176006317139,-0.076883271336555,0.119532987475395,-0.521399378776550,0.121597893536091,-0.174480706453323,-0.432841360569000) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.160487130284309,0.005131238605827,0.020412607118487,0.175962463021278,-0.245175898075104,-0.140197455883026,0.034080829471350,0.156132772564888,0.049220632761717,0.452913373708725,-0.089310616254807,-0.082096889615059,-0.458632618188858,-0.122201830148697,0.243403211236000,-0.220720469951630) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.164026528596878,-0.139399141073227,-0.250699162483215,0.052800592035055,0.221162915229797,0.144358009099960,0.170289188623428,0.044987402856350,-0.026682218536735,0.186807006597519,0.053013488650322,-0.279758781194687,0.030879504978657,-0.080502651631832,0.105916112661362,0.035825677216053) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.081703923642635,0.326766490936279,0.130802318453789,0.021477475762367,0.176163703203201,0.003209201386198,-0.027768112719059,-0.203857406973839,0.262398362159729,-0.371345728635788,-0.018277177587152,-0.251974463462830,-0.051120512187481,0.023514028638601,0.135398879647255,-0.283091813325882) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.019312104210258,-0.094662465155125,0.080763556063175,0.006125631742179,-0.125964179635048,0.164187654852867,-0.059332646429539,-0.043126292526722,-0.069068193435669,-0.162524282932281,0.376960337162018,0.064086072146893,-0.096347175538540,-0.041506644338369,0.110903017222881,0.019041430205107) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.012362100183964,0.051032576709986,-0.172139063477516,-0.051405958831310,0.059968367218971,-0.011918658390641,-0.045671414583921,0.042783305048943,-0.225772798061371,0.062440823763609,-0.147226378321648,-0.137926638126373,-0.028537871316075,-0.249455183744431,-0.140023648738861,-0.050086345523596) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.128111079335213,0.061452645808458,-0.030883656814694,-0.187672957777977,-0.068303294479847,-0.345630466938019,-0.558352053165436,-0.176427856087685,0.154981493949890,-0.075716540217400,-0.100024558603764,0.257079750299454,0.012353175319731,0.135628506541252,0.175498798489571,-0.032086689025164) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.115514926612377,-0.194022044539452,0.212278828024864,0.094455935060978,0.086135745048523,0.096096657216549,0.265654146671295,0.218347057700157,0.076606795191765,0.094334848225117,0.168303176760674,0.047687295824289,-0.044597934931517,-0.039496071636677,-0.009807886555791,-0.151841387152672) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.103844046592712,-0.068282939493656,-0.048022877424955,0.181919246912003,-0.138371944427490,0.172651633620262,0.013490620069206,-0.247086301445961,-0.120309121906757,-0.031893782317638,-0.115765675902367,0.010177236981690,0.129440546035767,0.112408220767975,-0.009119435213506,0.007253637537360) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.389109462499619,0.174559295177460,0.044485624879599,0.488298505544662,0.324120014905930,0.078499481081963,0.045042742043734,-0.296331524848938,-0.191914588212967,-0.006219667848200,0.015888405963778,0.008834238164127,0.122596226632595,0.059418670833111,-0.000365426676581,0.256140559911728) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.132978096604347,-0.107453234493732,-0.027510115876794,0.289146810770035,0.062411539256573,-0.241305947303772,0.087986685335636,0.416602522134781,-0.076921872794628,-0.039526071399450,0.054065831005573,-0.226322993636131,-0.193741455674171,0.005467760842294,0.051082342863083,0.170917943120003) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.012742944993079,0.059974532574415,-0.151012063026428,-0.158785656094551,0.026869032531977,-0.141534000635147,0.023174073547125,-0.097781702876091,0.090170122683048,0.189333841204643,-0.024767551571131,-0.124374046921730,-0.024205166846514,-0.141777545213699,-0.282030314207077,-0.114704102277756) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.037562768906355,0.151282951235771,0.087637148797512,-0.461771935224533,-0.308637708425522,0.190129354596138,0.090595588088036,-0.065125346183777,0.039144571870565,-0.030100997537374,0.073537237942219,0.066344231367111,0.096141040325165,0.122966997325420,-0.127714574337006,-0.128037914633751) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.091848462820053,-0.207892403006554,-0.060309559106827,-0.272647827863693,-0.017913967370987,-0.045634336769581,-0.006262962240726,0.081173829734325,0.182728976011276,0.100688025355339,0.171157956123352,-0.015353580936790,-0.108656227588654,0.028493113815784,-0.056639138609171,-0.175461769104004) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.210455864667892,-0.075332082808018,-0.128673508763313,-0.025182582437992,0.019932761788368,0.327415823936462,0.026160817593336,0.161098510026932,0.103463888168335,-0.109609730541706,-0.152088850736618,0.125631198287010,0.105951219797134,-0.014055887237191,-0.207857728004456,-0.142369806766510) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.297584891319275,0.114875890314579,-0.076703123748302,0.047094464302063,-0.000243554386543,-0.588058590888977,-0.260958820581436,0.247936010360718,-0.110806182026863,-0.141818150877953,-0.059509150683880,0.016583632677794,0.128004312515259,0.092133820056915,0.262518525123596,0.166439533233643) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.265645205974579,-0.045116469264030,-0.172291412949562,-0.200870051980019,-0.420734882354736,0.187832728028297,-0.047295317053795,0.283165097236633,0.265484690666199,0.174201235175133,-0.204919517040253,-0.105510309338570,0.070779927074909,-0.103391289710999,0.048058543354273,0.094595938920975) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.183525666594505,-0.156819120049477,0.082074001431465,0.013974046334624,0.324513733386993,-0.054899152368307,0.055668681859970,-0.057963464409113,-0.314981371164322,-0.165459930896759,0.038444526493549,0.080059185624123,-0.267054617404938,-0.204398602247238,0.084453940391541,-0.071940883994102) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.451096236705780,-0.128518268465996,-0.047141637653112,-0.203681036829948,-0.119175344705582,0.417574852705002,-0.335178434848785,-0.062119700014591,-0.217700511217117,-0.015102693811059,-0.055423516780138,-0.165414243936539,-0.060973525047302,0.015819458290935,-0.104742333292961,-0.463422477245331) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.055813301354647,0.140669673681259,0.103732973337173,-0.047691196203232,0.262765169143677,-0.546248674392700,-0.330776780843735,-0.408561736345291,-0.178365826606750,0.059344414621592,0.032194010913372,-0.055823814123869,0.108508929610252,0.092441640794277,0.193176403641701,0.302587926387787) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.102751635015011,0.334364056587219,0.035475917160511,0.016389582306147,0.169770255684853,0.000001560267265,-0.002376826712862,0.185801297426224,0.077398709952831,0.155103817582130,0.248155415058136,-0.017529239878058,-0.079584613442421,0.008231190033257,0.031787175685167,0.081297069787979) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.335468620061874,0.129482045769691,-0.282860457897186,0.218535050749779,-0.053375393152237,-0.329322457313538,0.406537532806396,-0.201081484556198,0.076269395649433,0.053573809564114,0.071162007749081,0.029474645853043,0.091899864375591,-0.113984309136868,-0.151567712426186,0.211317792534828) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.119866363704205,-0.036456316709518,0.150777816772461,0.110398620367050,-0.240964338183403,0.454889863729477,0.341906189918518,0.362806737422943,-0.042042065411806,-0.004747346974909,0.146414607763290,-0.093619987368584,-0.145218670368195,0.061020679771900,-0.169316306710243,-0.153025373816490) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.102983020246029,0.081635013222694,-0.140480309724808,0.000010790945453,0.052715595811605,-0.213574334979057,-0.100816987454891,0.051827460527420,-0.058647852391005,-0.195819228887558,0.171666592359543,-0.288893133401871,-0.085354134440422,0.156971305608749,0.241357177495956,0.182098686695099) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.183455646038055,0.046736679971218,0.060680326074362,0.028199249878526,-0.061033863574266,-0.037913661450148,0.062410600483418,-0.001785891130567,-0.019177122041583,-0.187430188059807,-0.058135528117418,-0.202104985713959,-0.087594181299210,0.137576356530190,0.045740168541670,0.241151928901672) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.030340073630214,-0.059809792786837,-0.045822270214558,-0.019692569971085,-0.191299885511398,-0.339151084423065,-0.071329742670059,0.280594646930695,0.198951631784439,0.267184913158417,0.023504218086600,0.078651964664459,-0.132996127009392,-0.052505876868963,0.046477250754833,0.220237776637077) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.023984488099813,-0.099643476307392,-0.165534406900406,0.086929030716419,0.083329908549786,0.274724721908569,-0.015939377248287,0.049514722079039,-0.182476550340652,0.057537265121937,0.110313817858696,0.165727868676186,-0.127145975828171,0.037351123988628,0.066869713366032,-0.065164849162102) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.280640780925751,-0.266967415809631,0.044862758368254,0.113517768681049,0.047481756657362,0.306541293859482,-0.159603402018547,0.024755042046309,0.153353050351143,-0.014757852070034,-0.067786470055580,0.293955117464066,0.024815894663334,-0.148991882801056,0.257858484983444,0.272761642932892) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.004605749156326,0.261611163616180,0.123235955834389,-0.285948336124420,-0.264720529317856,0.300608038902283,0.001815861207433,-0.306324183940887,-0.231315001845360,-0.101065620779991,0.136012554168701,0.184898167848587,-0.029120953753591,-0.136768907308578,0.093793153762817,0.123376458883286) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.048902146518230,0.314826220273972,0.076223582029343,-0.138310775160789,0.088985159993172,-0.203883513808250,0.208938345313072,-0.034221410751343,-0.013887828215957,0.294973790645599,-0.077543057501316,-0.107132092118263,-0.106808312237263,-0.143054917454720,-0.197623312473297,0.015215029940009) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.170815140008926,0.110320836305618,0.020879080519080,0.066292874515057,0.149852633476257,0.070621564984322,0.018435584381223,0.018069725483656,0.032162681221962,-0.328953981399536,0.077277496457100,0.131426826119423,0.064318798482418,0.226227328181267,-0.083771072328091,-0.150547325611115) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.093625850975513,-0.293094426393509,0.122302815318108,-0.301784932613373,-0.128789722919464,0.119183391332626,0.089850075542927,0.025836234912276,-0.110317207872868,0.170892536640167,-0.107885695993900,-0.151274234056473,0.054879255592823,-0.073329232633114,-0.172584474086761,-0.045997880399227) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.068068198859692,0.092906452715397,0.317324757575989,0.009258143603802,-0.452027678489685,0.008203317411244,0.139229312539101,-0.115696229040623,-0.197348892688751,-0.420606344938278,-0.465455144643784,0.200211480259895,-0.042682480067015,0.130458399653435,-0.064166158437729,-0.000024933289751) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.105177588760853,-0.244073137640953,-0.027674715965986,-0.055794656276703,0.205028742551804,0.071811363101006,0.054022260010242,0.009482246823609,0.072346873581409,0.120543606579304,-0.077672794461250,-0.046765875071287,-0.197849050164223,-0.061736471951008,0.015343065373600,0.011109921149909) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.002802611095831,0.353354841470718,-0.108671203255653,-0.137137264013290,0.050962008535862,0.036582961678505,0.282730698585510,0.047635328024626,0.035660613328218,-0.225276589393616,-0.060440383851528,0.119710192084312,-0.172031000256538,-0.166068941354752,0.189616739749908,-0.021690564230084) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.146423846483231,-0.145104616880417,0.103528305888176,0.023743212223053,-0.090474531054497,-0.017167808488011,0.021557496860623,0.272011339664459,-0.037066746503115,0.134453907608986,-0.036353882402182,0.052820842713118,0.213740214705467,-0.151070877909660,-0.337439954280853,-0.130946502089500) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.198533371090889,-0.290597826242447,0.130029574036598,0.172618493437767,0.138058379292488,0.117974467575550,0.022283811122179,0.153588384389877,-0.274338245391846,-0.281371295452118,0.077063389122486,0.249178752303123,-0.189844399690628,0.123812288045883,-0.433266013860703,0.160591557621956) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.420671492815018,-0.555129289627075,-0.066116690635681,0.040887843817472,0.091885298490524,-0.026007140055299,0.244235843420029,0.119464412331581,0.105865493416786,-0.028045479208231,-0.062618911266327,-0.008719537407160,-0.078117504715919,-0.009622775949538,0.140315935015678,-0.012383119203150) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.043977312743664,0.224357202649117,-0.105902269482613,0.074314467608929,-0.057844635099173,0.057532265782356,0.108508810400963,-0.022087035700679,-0.199137151241302,0.422399550676346,0.184611871838570,-0.158316642045975,0.293541908264160,-0.291917234659195,0.131842508912086,-0.047542560845613) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.018303819000721,0.256482750177383,-0.003210134105757,0.018701264634728,-0.058888755738735,-0.248401910066605,0.002673772629350,0.050533007830381,-0.153781652450562,-0.044801704585552,0.246349275112152,0.091829963028431,-0.187391400337219,0.196200489997864,-0.353134810924530,0.285155147314072) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.032827597111464,0.152208223938942,-0.128713145852089,-0.133139967918396,-0.057731699198484,0.065412014722824,-0.030897876247764,0.095949530601501,-0.173033982515335,-0.013991894200444,0.112819537520409,-0.121219031512737,0.083152316510677,-0.163561359047890,0.229781180620193,-0.000229568729992) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.046930655837059,-0.048814743757248,-0.066943459212780,0.168696552515030,-0.082156278192997,0.105260141193867,-0.232833057641983,-0.186958789825439,0.184649884700775,0.337474405765533,0.078214228153229,-0.063246034085751,0.121051326394081,-0.201848298311234,-0.249378100037575,0.202367305755615) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.218567267060280,-0.018558304756880,-0.160587325692177,-0.299303770065308,0.084831260144711,0.121753595769405,-0.189291626214981,0.056496806442738,0.398321241140366,0.018007954582572,0.170066803693771,0.106127120554447,-0.149523749947548,0.195523843169212,-0.067209497094154,-0.013060710392892) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.125965699553490,0.059903938323259,-0.058932859450579,0.212880343198776,-0.073528923094273,-0.104265972971916,0.056922499090433,-0.267434269189835,-0.209177926182747,-0.334036886692047,-0.118903487920761,0.155961051583290,0.138236165046692,-0.044365551322699,0.046109452843666,-0.043696977198124) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.125843241810799,0.288883805274963,-0.155156373977661,0.020215291529894,-0.211072325706482,0.008421132341027,-0.040492445230484,0.225130259990692,-0.176391139626503,-0.411569982767105,-0.335725158452988,-0.008696975186467,-0.265827387571335,-0.107058085501194,0.087290085852146,-0.194684982299805) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.086826227605343,0.220234945416451,0.318916827440262,0.080164723098278,-0.347781419754028,0.054950874298811,0.222460106015205,0.154127031564713,-0.465768426656723,0.151664406061172,0.401665151119232,-0.540740549564362,-0.092574954032898,0.171795427799225,-0.049217555671930,-0.272761404514313) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.289735853672028,-0.129123881459236,0.066606409847736,-0.033936556428671,-0.037796113640070,0.283661842346191,0.274263143539429,0.109172262251377,0.343797624111176,0.271777927875519,-0.128171250224113,0.029521124437451,-0.018198637291789,-0.054901652038097,0.247842803597450,-0.042687602341175) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.015819631516933,-0.166918337345123,-0.606758058071136,-0.116357825696468,0.711165845394135,0.214363440871239,-0.030715683475137,-0.098188795149326,-0.042802754789591,0.051629122346640,0.158471375703812,0.020305067300797,0.146716564893723,-0.051379285752773,0.079926721751690,0.010489373467863) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.093837291002274,0.230497613549232,0.074993073940277,-0.258059710264206,0.137314766645432,-0.416536927223206,0.209208548069000,0.104050196707249,-0.009114856831729,-0.242919400334358,-0.075064182281494,0.293472588062286,-0.075048632919788,-0.025153491646051,0.011244395747781,0.208701297640800) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.091519013047218,0.009816962294281,-0.138732507824898,-0.056841228157282,-0.105086557567120,-0.031568024307489,0.089848555624485,0.274229466915131,-0.014877394773066,0.269684702157974,-0.108965814113617,0.005115478299558,0.113766975700855,0.107617035508156,-0.018591852858663,-0.076678834855556) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.264013290405273,-0.521064758300781,-0.184162914752960,0.347021579742432) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL4
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 1_4

vec4 hook()
{
vec4 res = vec4(-0.010453156195581,0.017140418291092,-0.642856121063232,0.052273504436016);
res += mat4(0.163639485836029,0.073667094111443,-0.681165337562561,-0.326185911893845,-0.096839331090450,-0.037587922066450,0.105244085192680,0.154269412159920,0.026125833392143,-0.013077021576464,0.003421926870942,-0.078158430755138,-0.494990378618240,0.091844603419304,-0.023557683452964,-0.332212656736374) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.046789363026619,0.409279376268387,-0.134232357144356,-0.147039040923119,-0.090179480612278,0.186198577284813,-0.051250360906124,-0.101163648068905,-0.216453179717064,0.069132082164288,-0.177204743027687,0.101710870862007,-0.495719581842422,-0.147709190845490,0.058260947465897,0.036197520792484) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.151699721813202,0.029914576560259,0.170265510678291,0.065015882253647,-0.027742484584451,0.044815488159657,0.067510798573494,0.044987861067057,0.133798822760582,-0.041263781487942,-0.091070681810379,0.015796696767211,0.026175161823630,-0.031799267977476,0.241312578320503,-0.041915204375982) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.164736673235893,-0.080746717751026,-0.378777891397476,-0.075932584702969,0.053543634712696,0.275745600461960,0.020710563287139,-0.084347635507584,-0.009624347090721,0.067613832652569,-0.021353766322136,-0.084929436445236,0.069055251777172,0.025714261457324,-0.023228660225868,-0.075691543519497) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.065509527921677,0.175276145339012,0.079828023910522,0.168444812297821,-0.218840688467026,0.246032267808914,0.108359001576900,-0.185226857662201,0.246090799570084,-0.095251396298409,-0.147016972303391,0.106039404869080,0.223276361823082,-0.066557094454765,-0.040331251919270,-0.169640421867371) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.013627497479320,-0.477628201246262,0.331333994865417,0.019141567870975,-0.047770615667105,-0.175635054707527,-0.102792441844940,-0.082406900823116,0.016830043867230,0.095202818512917,-0.136397212743759,0.047353081405163,-0.101131103932858,0.059971366077662,0.068382851779461,-0.115578465163708) * FEATURE1_texOff(vec2(0,1));
res += mat4(0.095820799469948,0.008098036050797,-0.253672599792480,0.009209587238729,0.049564894288778,0.022088848054409,-0.228920191526413,0.286723792552948,0.111202508211136,-0.013044494204223,0.109863586723804,0.129602402448654,0.083051912486553,0.006703944876790,-0.072257384657860,0.032418206334114) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.001688034739345,-0.014400119893253,0.001957274973392,-0.041899241507053,0.047917742282152,0.155957207083702,-0.220856398344040,-0.036335814744234,-0.384025663137436,0.133363768458366,0.043492540717125,0.089347846806049,0.199432477355003,-0.084491916000843,0.118426725268364,-0.045214734971523) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.038929663598537,0.116088941693306,-0.072916090488434,-0.077064394950867,0.200577616691589,-0.049950912594795,-0.019664691761136,0.040949188172817,-0.043424785137177,-0.297622978687286,0.058494098484516,0.058972906321287,0.101159691810608,0.013913746923208,0.016546884551644,0.117814786732197) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.050930693745613,-0.076344914734364,0.092047631740570,0.149858757853508,-0.176260337233543,0.029773617163301,-0.063881091773510,0.210600286722183,0.068844959139824,-0.015334739349782,0.111882470548153,0.023561410605907,-0.271026462316513,-0.017839688807726,-0.114662446081638,-0.125780493021011) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.053397830575705,0.179632276296616,-0.006997121032327,-0.010218658484519,-0.008424455299973,-0.015088284388185,-0.116528019309044,0.076953873038292,-0.043345022946596,-0.108810544013977,-0.056397024542093,-0.003764592576772,-0.094864226877689,0.044409446418285,-0.177522480487823,0.146932497620583) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.158992528915405,-0.081582009792328,0.093957535922527,-0.029782457277179,-0.119152389466763,-0.159145101904869,-0.024416007101536,0.167124032974243,-0.094329804182053,0.096565321087837,0.019734859466553,0.001775343553163,0.199132695794106,-0.211151316761971,0.113839767873287,-0.146776869893074) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.010332560166717,-0.086960032582283,-0.064656294882298,-0.235880896449089,0.162848159670830,0.014468696899712,0.152464300394058,0.046924136579037,-0.162904471158981,-0.109647676348686,0.211193189024925,0.039570841938257,0.120606049895287,0.095189981162548,-0.305701971054077,0.184773221611977) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.343945682048798,0.427308499813080,-0.451227456331253,0.089633144438267,-0.226265013217926,0.163309514522552,-0.056148540228605,-0.122721962630749,0.004399062599987,-0.043795954436064,-0.038419082760811,0.063532359898090,-0.019225547090173,0.251906216144562,-0.180382907390594,0.152937680482864) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.017084378749132,-0.681736707687378,0.247395575046539,-0.005991308949888,-0.080312483012676,0.023733979091048,-0.080067485570908,-0.098875224590302,-0.140371039509773,-0.043425075709820,-0.049637984484434,-0.044272199273109,0.112917043268681,-0.205968171358109,-0.277685731649399,-0.028141308575869) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.017017636448145,0.110344775021076,-0.148602277040482,0.158093318343163,-0.011549805290997,0.018826045095921,-0.090047262609005,-0.311915427446365,0.045875046402216,-0.087091445922852,0.178546652197838,-0.074191935360432,-0.030787065625191,-0.032552793622017,0.065276727080345,0.050396580249071) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.356360435485840,-0.088009595870972,0.035755880177021,0.203562721610069,0.120119169354439,-0.164173275232315,0.181700497865677,-0.052994403988123,0.075689218938351,-0.087220169603825,-0.097184978425503,0.150960460305214,0.120368421077728,0.127526581287384,-0.094231218099594,0.005846711806953) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.070130869746208,0.291695177555084,0.047228533774614,-0.305670112371445,0.103447817265987,0.163086459040642,0.096140183508396,0.021692402660847,0.067840829491615,-0.004846169613302,-0.133501783013344,0.022721553221345,0.012308082543314,-0.193417474627495,0.027347771450877,-0.067675240337849) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.060826297849417,-0.093702711164951,0.333456158638000,-0.079329282045364,0.051355708390474,-0.172593191266060,0.023829231038690,-0.175615429878235,-0.064191311597824,0.065039381384850,-0.247766822576523,0.116742096841335,0.078732199966908,0.058823399245739,-0.015674974769354,-0.148382142186165) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.209946691989899,-0.104166090488434,-0.183072000741959,-0.058039255440235,-0.229233622550964,0.057478237897158,-0.373981416225433,0.374780923128128,0.413515210151672,-0.298886507749557,0.379003077745438,0.111273169517517,-0.137086451053619,-0.027045933529735,-0.185452058911324,-0.079165957868099) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.024875130504370,0.090934805572033,-0.099248245358467,-0.054720003157854,0.223531305789948,0.157628908753395,0.630282163619995,-0.314244121313095,0.035759571939707,0.459398686885834,-0.294731944799423,-0.119716182351112,-0.037100125104189,-0.060389194637537,-0.012828018516302,0.017217373475432) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.204324990510941,-0.153090015053749,-0.241559565067291,0.366694062948227,-0.111554026603699,-0.002802198054269,0.041506309062243,0.181281298398972,0.116972737014294,-0.065412595868111,0.056925524026155,0.381849616765976,0.120089530944824,-0.184468001127243,0.035404272377491,0.007490681484342) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.366788864135742,-0.522400677204132,0.252598255872726,0.221209540963173,0.104698747396469,-0.247403919696808,0.229072749614716,0.278252303600311,-0.075307786464691,-0.370721459388733,0.391057431697845,-0.198630377650261,0.271414935588837,0.066876657307148,0.275421828031540,0.036515839397907) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.232532396912575,0.406105339527130,0.037446197122335,-0.174230441451073,-0.138989195227623,0.021136201918125,-0.060886096209288,-0.064072959125042,0.380193322896957,0.352802455425262,0.106305189430714,0.048992391675711,-0.062984876334667,0.167510360479355,-0.150707215070724,0.179523155093193) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.187964484095573,-0.175308555364609,0.020213965326548,0.007914358749986,0.044877681881189,-0.002029717899859,-0.113411530852318,0.041335463523865,-0.142662331461906,-0.060906074941158,-0.131964325904846,-0.058536436408758,-0.151139885187149,-0.006743571255356,-0.041481800377369,-0.265876203775406) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.183128178119659,0.239490479230881,-0.210193380713463,-0.320230036973953,-0.064977832138538,0.038882277905941,-0.174650952219963,0.002572596305981,-0.532209396362305,0.078457623720169,0.047814927995205,-0.138686850667000,-0.168592020869255,-0.031288269907236,-0.076242402195930,0.043244589120150) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.084835194051266,0.113088585436344,-0.109064191579819,0.028403526172042,0.029500199481845,-0.007291807793081,-0.070478036999702,0.196932047605515,-0.155902370810509,-0.050084799528122,-0.042698133736849,-0.091588087379932,0.160346418619156,-0.028854293748736,0.084521859884262,0.035267245024443) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.008769699372351,-0.010305874980986,-0.057619869709015,-0.008627982810140,-0.046032562851906,-0.028156872838736,-0.125077068805695,-0.024193933233619,0.005987428128719,-0.022714897990227,0.177129223942757,0.009980957023799,-0.071014925837517,0.230450704693794,-0.031310658901930,-0.146054700016975) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.060919135808945,0.118174612522125,-0.156773850321770,0.038552097976208,0.070371836423874,-0.047886189073324,-0.056474048644304,0.005246595479548,0.158430859446526,-0.016868896782398,0.118071056902409,0.032111812382936,-0.106072366237640,0.173620343208313,-0.296402812004089,-0.017194936051965) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.038698095828295,-0.060329031199217,-0.029456272721291,0.092042334377766,0.115683406591415,-0.036722935736179,0.316294759511948,0.060813996940851,0.065557174384594,0.133027926087379,0.111858993768692,0.000271239987342,-0.227045059204102,-0.272133737802505,-0.261431366205215,0.011053323745728) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.045781165361404,-0.065171167254448,0.028489822521806,0.045064568519592,0.151218026876450,-0.209917485713959,0.103509552776814,0.087051674723625,-0.250943928956985,-0.069992773234844,0.104034699499607,0.015777193009853,-0.150992900133133,0.221477985382080,-0.096047908067703,-0.186300903558731) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.140148133039474,0.019018957391381,-0.219988584518433,-0.042354121804237,0.210541307926178,-0.296938359737396,0.012204543687403,-0.494375586509705,-0.295516312122345,0.298422634601593,-0.332782506942749,-0.402486115694046,-0.240191757678986,0.062002398073673,-0.265957981348038,-0.046210814267397) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.262089282274246,0.026212332770228,-0.210619822144508,-0.032260097563267,0.093773409724236,1.028495788574219,-0.239332064986229,-0.299740582704544,-0.092107623815536,-0.223465248942375,-0.023534290492535,0.035820357501507,-0.030609451234341,-0.354985415935516,-0.224182665348053,0.057578466832638) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.216471165418625,-0.232720166444778,0.204598665237427,-0.251263350248337,-0.114559523761272,-0.016861230134964,-0.025451099500060,-0.022147310897708,-0.011910902336240,0.035115607082844,0.005930916871876,0.037315182387829,0.340180516242981,0.117797434329987,-0.132224619388580,0.085086703300476) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.198872938752174,0.329418510198593,0.117126137018204,0.070071421563625,-0.147871226072311,0.025900006294250,-0.177062973380089,0.007138412911445,0.175573974847794,0.070310950279236,-0.116378821432590,0.064220882952213,0.258451908826828,0.060483697801828,-0.044036529958248,0.207429349422455) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.202631145715714,-0.101233139634132,0.148361310362816,0.170145377516747,-0.016390282660723,0.033630337566137,0.231686159968376,0.255705416202545,0.134128302335739,-0.106118656694889,-0.044500596821308,-0.068629711866379,0.074606798589230,-0.137489408254623,-0.031416453421116,0.001546109910123) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.036908380687237,0.074727006256580,0.156943097710609,0.002633581869304,-0.172129228711128,0.185806795954704,-0.023100825026631,-0.051767013967037,0.871900439262390,-0.062274910509586,0.148429617285728,0.284339398145676,-0.088539958000183,0.020271679386497,0.039914894849062,0.221567854285240) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.029871182516217,0.026760561391711,0.215216815471649,0.261200904846191,0.108109004795551,-0.274762839078903,0.315896898508072,-0.016956720501184,0.377514123916626,0.225204408168793,0.077296636998653,-0.128325432538986,-0.097788564860821,0.005075870547444,0.040912389755249,0.004190457053483) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.092858329415321,-0.137649327516556,-0.094639793038368,-0.074286259710789,0.012853028252721,0.078262992203236,-0.019852437078953,-0.175885289907455,-0.035440649837255,0.050703719258308,-0.051576420664787,-0.104630440473557,-0.074942134320736,-0.075735025107861,0.233990892767906,-0.005375517532229) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.032997816801071,0.113941580057144,-0.142026111483574,-0.073340736329556,-0.410441875457764,-0.107957832515240,0.258807539939880,-0.138907328248024,-0.130797371268272,0.097131401300430,0.054606176912785,0.053756434470415,0.112324900925159,0.012147555127740,-0.174072340130806,0.054476298391819) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.218067035079002,0.336383640766144,-0.321961313486099,0.243115752935410,0.006420813966542,0.133755296468735,-0.014209184795618,-0.077899001538754,-0.208883225917816,-0.193861424922943,0.176312863826752,-0.011933531612158,-0.171452701091766,0.020617075264454,-0.098983995616436,-0.007452034391463) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.238708123564720,-1.006719708442688,-0.057893689721823,0.181660994887352,0.006451424211264,0.169757291674614,0.054483968764544,0.139463827013969,-0.148050308227539,-0.125821620225906,-0.043953608721495,0.088684014976025,-0.099325388669968,0.048837151378393,0.058237507939339,0.160222440958023) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.072502546012402,0.059123508632183,0.079596549272537,-0.007249417714775,-0.182152703404427,0.086223639547825,0.058100111782551,-0.174819290637970,-0.537122368812561,0.146423771977425,0.076588779687881,0.139819517731667,-0.263278990983963,0.029804743826389,0.170036479830742,-0.014867552556098) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.042724825441837,-0.076777130365372,0.198413014411926,-0.112788110971451,-0.147221624851227,0.012105871923268,0.013875213451684,0.034227356314659,-0.089564330875874,-0.039813455194235,-0.095287404954433,-0.099349223077297,0.018004648387432,0.181717485189438,-0.054767072200775,-0.459301114082336) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.069542743265629,0.044190615415573,-0.033841829746962,0.006869927980006,-0.055021509528160,-0.047052130103111,0.033673834055662,0.120479859411716,0.065759815275669,-0.046360082924366,0.085287019610405,0.064736306667328,0.040825080126524,-0.140030205249786,-0.015045593492687,-0.272864848375320) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.096136122941971,-0.007704955525696,-0.114295616745949,-0.017858643084764,0.217758417129517,-0.070808596909046,0.122805058956146,-0.065254189074039,0.056449387222528,0.025565745308995,0.029191061854362,-0.088100850582123,-0.214879378676414,0.076921962201595,-0.323510348796844,-0.205563053488731) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.318346232175827,0.047413405030966,0.284848213195801,0.032954763621092,0.072154968976974,-0.077477708458900,0.049018848687410,-0.009833946824074,-0.244976967573166,-0.070881307125092,-0.217694148421288,0.111559800803661,0.091134712100029,-0.095759890973568,0.135498329997063,0.119278192520142) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.151404917240143,-0.024745130911469,0.064467154443264,0.057707078754902,0.015801977366209,0.158491328358650,-0.257160335779190,-0.002076095668599,-0.011972177773714,-0.143067881464958,0.106228992342949,0.166554942727089,0.043455462902784,0.128895819187164,0.014353414997458,0.077722184360027) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.363761365413666,-0.123884722590446,-0.097842097282410,0.066407740116119,0.282213449478149,-0.474650084972382,0.536202132701874,0.338739454746246,0.112047180533409,0.153954982757568,-0.014561255462468,0.286741226911545,0.211587384343147,-0.055094677954912,0.081643223762512,0.098710864782333) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.491879731416702,0.174125492572784,-0.277099251747131,-0.129276052117348,0.304574489593506,0.137433990836143,1.001184105873108,0.182435587048531,0.660636246204376,-0.653906285762787,0.558330595493317,-0.108971208333969,0.067866846919060,-0.274767488241196,0.172908753156662,0.030941683799028) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.188614502549171,0.106513522565365,-0.351204246282578,-0.008232854306698,-0.127354592084885,0.573284924030304,-0.137100636959076,-0.227262660861015,-0.109314672648907,0.766783952713013,-0.298424333333969,-0.027823984622955,-0.180969029664993,0.191262692213058,-0.147459626197815,-0.052273347973824) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.062732353806496,0.010457045398653,0.065945215523243,0.089234136044979,-0.225750446319580,-0.011205440387130,-0.062720723450184,-0.195024728775024,-0.121810063719749,0.038963459432125,-0.032179959118366,-0.289374709129333,0.033525347709656,0.050498362630606,-0.004215259104967,-0.244113802909851) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.322847098112106,0.027789717540145,0.168001487851143,0.153970330953598,-0.251112550497055,-0.163323387503624,0.395215690135956,0.067184187471867,-0.336328685283661,-0.148163855075836,0.036368250846863,-0.014587329700589,-0.131534129381180,-0.076768696308136,0.055920667946339,0.350699275732040) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.194694995880127,-0.104102589190006,0.057650823146105,-0.178897678852081,-0.012536662630737,0.102290958166122,-0.425842761993408,0.085561737418175,0.021804459393024,-0.005639186128974,-0.080524906516075,0.071653775870800,0.092383578419685,0.118299886584282,-0.027576195076108,-0.177074313163757) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.170365780591965,-0.336413264274597,-0.016853848472238,0.026053205132484) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL5
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 1_5

vec4 hook()
{
vec4 res = vec4(0.007623312529176,0.065444596111774,-0.271026343107224,-0.141335785388947);
res += mat4(0.025134906172752,-0.171901926398277,0.147312253713608,-0.084302723407745,-0.227239191532135,-0.038021381944418,0.092172525823116,0.112278237938881,-0.252533107995987,0.070410348474979,-0.091648176312447,-0.020912194624543,0.131838738918304,-0.133502379059792,0.190210044384003,-0.253541290760040) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.027589226141572,0.192138403654099,0.097748383879662,-0.092853881418705,0.031900998204947,0.086271800100803,0.206029385328293,-0.161428570747375,-0.350095301866531,-0.115132816135883,0.005918231327087,0.147563233971596,-0.079897664487362,-0.047085549682379,0.318382084369659,-0.241048887372017) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.233351960778236,0.043844372034073,0.076937228441238,0.079274579882622,-0.141302272677422,0.033420231193304,0.144043102860451,-0.063461199402809,0.169577032327652,0.064506366848946,-0.099000260233879,0.017248531803489,0.236340463161469,-0.010110805742443,0.048356611281633,0.195920959115028) * FEATURE1_texOff(vec2(-1,1));
res += mat4(0.219133213162422,0.022746715694666,0.117035284638405,-0.353055506944656,0.149541214108467,0.302389293909073,0.379322081804276,0.007466793525964,-0.023027814924717,-0.183296963572502,0.121300205588341,-0.154932186007500,-0.005209786817431,-0.087325416505337,0.078994549810886,-0.084406882524490) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.141819223761559,0.182615309953690,0.061717886477709,0.197303399443626,0.156952843070030,0.069934315979481,0.011775073595345,0.066083155572414,0.255077660083771,-0.092995606362820,-0.118851594626904,-0.137543946504593,0.124134287238121,0.102932155132294,-0.247126594185829,0.026901675388217) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.316131889820099,0.041900940239429,-0.017975118011236,-0.021519515663385,0.030745221301913,-0.078428126871586,-0.034368284046650,-0.104873016476631,-0.028119098395109,0.126283168792725,-0.165726333856583,-0.106691941618919,0.009399359114468,0.122562542557716,-0.161746218800545,0.153365746140480) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.039835646748543,-0.090267002582550,0.136370554566383,0.077553108334541,-0.046063616871834,-0.186686724424362,0.093392610549927,0.067113399505615,-0.178640723228455,0.080880627036095,-0.201853990554810,0.035820946097374,0.087175369262695,0.154729828238487,0.130560174584389,-0.008783703669906) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.065603815019131,0.012321735732257,-0.054989401251078,0.023148369044065,0.048364534974098,0.106877818703651,-0.018489506095648,0.151951596140862,-0.634250640869141,0.378398239612579,0.168971821665764,0.176691189408302,0.203602492809296,0.017241980880499,0.111978933215141,0.032782562077045) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.044141653925180,-0.037222538143396,0.055936425924301,0.115082703530788,-0.068042464554310,-0.088459461927414,-0.123989656567574,0.075737416744232,0.036347389221191,0.166568621993065,0.218833968043327,0.001256870455109,0.037254743278027,0.082218930125237,-0.146516039967537,-0.004722492303699) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.080831289291382,0.190632089972496,0.072871744632721,0.010468962602317,-0.154380679130554,0.030860900878906,0.090350173413754,0.198298841714859,0.087475858628750,-0.104333020746708,0.066167503595352,0.028555896133184,-0.075615651905537,0.047781221568584,-0.105284884572029,-0.192571237683296) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.289093494415283,-0.106799624860287,0.212490603327751,-0.286827236413956,-0.057539839297533,0.190433561801910,0.173853412270546,0.113915145397186,0.005748234689236,-0.147631242871284,0.194341853260994,0.007164383772761,0.065768256783485,0.236678734421730,-0.264367759227753,-0.015533595345914) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.240700080990791,-0.067731492221355,0.010661089792848,-0.020056292414665,0.080500923097134,-0.135958388447762,0.134762808680534,-0.110971599817276,0.019595792517066,-0.114855013787746,0.091790318489075,0.017450353130698,-0.161542668938637,0.040508981794119,-0.202136293053627,-0.072189822793007) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.091900534927845,0.347267419099808,0.143813520669937,0.114424608647823,0.150317296385765,0.230988815426826,0.151801452040672,-0.053742393851280,0.139566108584404,0.135614037513733,-0.073458321392536,-0.130600184202194,0.018067933619022,-0.044378854334354,0.032371960580349,0.097902998328209) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.115699514746666,-0.386836528778076,-0.326046109199524,0.179779991507530,-0.041907887905836,0.203468263149261,0.002813216065988,-0.150547564029694,-0.032744068652391,0.019767988473177,-0.079639650881290,-0.096188791096210,0.020243726670742,0.131397590041161,-0.182040959596634,0.029334291815758) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.126837670803070,0.097221143543720,0.192561089992523,-0.006100006401539,0.068785749375820,-0.270288050174713,0.137368649244308,-0.137042105197906,-0.079789914190769,0.025348553434014,-0.091869883239269,-0.072649553418159,-0.243227228522301,-0.151968851685524,0.017688987776637,0.237827256321907) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.065501868724823,-0.284038364887238,-0.066652923822403,0.084325216710567,0.066013753414154,-0.063182339072227,0.035335395485163,0.327342838048935,0.121575623750687,-0.093260571360588,-0.049906484782696,-0.154237911105156,0.021123446524143,-0.069991990923882,-0.110146343708038,0.095311947166920) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.022711992263794,0.118266709148884,-0.135599181056023,-0.007206765003502,0.085779890418053,-0.189231514930725,-0.049302469938993,-0.224834233522415,0.005989138036966,-0.079674899578094,-0.102928861975670,0.025356469675899,-0.194458812475204,-0.108540028333664,0.026291791349649,-0.026838146150112) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.029441507533193,-0.047036990523338,-0.123502835631371,0.002451298292726,0.010767295956612,-0.160189971327782,-0.062916770577431,-0.006249080877751,-0.050333622843027,-0.130454480648041,0.002508906181902,-0.036964885890484,-0.052642326802015,-0.074858285486698,-0.004113384522498,0.081253759562969) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.269513756036758,0.154535338282585,0.398325204849243,-0.136958211660385,-0.071533739566803,0.074752070009708,0.214405909180641,0.127726003527641,-0.121340505778790,0.001314262510277,0.047977160662413,-0.227867841720581,0.116722270846367,0.179831787943840,-0.069628372788429,0.066382400691509) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.155818060040474,0.089609600603580,-0.123812802135944,0.010287897661328,-0.321080356836319,-0.254396259784698,-0.001077826367691,0.336380422115326,-0.078045368194580,-0.047984849661589,-0.441697239875793,0.254181802272797,-0.139644846320152,-0.120541177690029,-0.105185262858868,0.181623801589012) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.102683410048485,0.103589817881584,-0.048732735216618,0.150619938969612,-0.292642474174500,-0.364187777042389,-0.026702616363764,0.002245171694085,0.110542275011539,-0.051651217043400,0.086415685713291,-0.021214751526713,0.085650578141212,-0.012596352957189,-0.047251142561436,-0.071344844996929) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.005706995725632,-0.268428295850754,-0.134848117828369,0.086676940321922,0.197084009647369,-0.036949876695871,0.018813114613295,0.094393409788609,0.094717182219028,-0.072615109384060,-0.165014982223511,0.025417199358344,-0.196996599435806,-0.254319936037064,-0.104613944888115,0.038034547120333) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.094959929585457,-0.321730732917786,-0.110663808882236,0.003306162077934,0.218092396855354,0.252782344818115,-0.198250681161880,-0.241860970854759,-0.251177161931992,-0.138657063245773,0.017863426357508,0.147102132439613,0.062730379402637,0.387962818145752,0.228181526064873,-0.391272634267807) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.165566101670265,-0.005779402330518,-0.049712453037500,0.101827859878540,0.263809740543365,-0.043073806911707,-0.153219059109688,0.331523239612579,-0.107407577335835,-0.052512776106596,0.027665324509144,0.051670797169209,-0.052019968628883,-0.066071242094040,0.056316073983908,-0.163299739360809) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.154580071568489,0.070896498858929,-0.136235252022743,-0.009630323387682,-0.052022699266672,-0.021873900666833,0.109120734035969,-0.055845580995083,0.139174938201904,0.091454923152924,0.062824167311192,-0.054786875844002,-0.036069869995117,0.131195396184921,-0.271239936351776,0.028619969263673) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.127484127879143,0.212941929697990,-0.003322441363707,-0.064802095293999,0.113224416971207,-0.209018290042877,0.149786666035652,0.083877481520176,0.008087920024991,0.124714858829975,-0.138100177049637,-0.016161549836397,0.027637559920549,-0.065292246639729,-0.111231744289398,0.042203448712826) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.143647849559784,0.134942874312401,-0.032242637127638,0.135944217443466,0.181549921631813,0.152080357074738,0.168951466679573,-0.194514706730843,0.039303384721279,0.098335169255733,0.044519003480673,-0.015441710129380,0.075674727559090,0.062418740242720,0.064470380544662,0.271370023488998) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.016462778672576,-0.062170688062906,-0.083127647638321,-0.056134790182114,0.064963869750500,-0.152384281158447,0.003207429545000,0.143349602818489,-0.270256161689758,-0.160183534026146,0.035083457827568,0.065123789012432,0.284179419279099,0.071242958307266,-0.111284919083118,-0.273263692855835) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.019331319257617,0.050015203654766,0.126387923955917,-0.286573499441147,-0.027807645499706,-0.155604079365730,-0.052294559776783,0.143571972846985,0.109608262777328,-0.011969874612987,0.264094352722168,-0.105235688388348,0.564843773841858,0.019793884828687,-0.092337094247341,-0.340704262256622) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.083881027996540,0.032652065157890,-0.007097305264324,-0.213292598724365,0.256131529808044,-0.197367906570435,-0.034120675176382,-0.296366631984711,-0.125819519162178,-0.137292832136154,0.002501698443666,0.070944927632809,0.206078916788101,0.144840657711029,-0.204176187515259,-0.257217139005661) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.067302003502846,-0.174885630607605,0.513136565685272,0.193555638194084,-0.109751492738724,0.271993219852448,0.058924425393343,-0.083514407277107,0.181065917015076,0.199527084827423,0.035408247262239,0.058539599180222,0.067166768014431,-0.111394703388214,-0.093547202646732,-0.043003801256418) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.721174001693726,0.218818217515945,0.000882122083567,-0.033161371946335,-0.204401016235352,0.016398986801505,-0.128189474344254,-0.180591717362404,0.211457371711731,0.071053877472878,-0.051291406154633,0.089011274278164,0.143860727548599,-0.148918807506561,-0.119339331984520,0.172367319464684) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.167355805635452,-0.237747296690941,0.135095283389091,-0.067388795316219,0.149583220481873,-0.178959578275681,0.025199070572853,-0.152284339070320,-0.022823877632618,-0.052217304706573,0.062714315950871,0.079402998089790,0.330522060394287,-0.116237655282021,0.015663746744394,-0.161081179976463) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.009334255941212,-0.144474834203720,-0.231586441397667,0.196627542376518,0.017795382067561,-0.092455841600895,-0.177546977996826,-0.039404131472111,0.038344293832779,0.200023248791695,0.035451848059893,-0.075578026473522,0.098279282450676,0.072048529982567,-0.128833949565887,-0.039308652281761) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.053010877221823,0.340276926755905,-0.147701695561409,-0.105145648121834,0.009926703758538,0.020969910547137,0.027501219883561,0.083230175077915,-0.065617345273495,-0.239441245794296,0.127390041947365,0.031886611133814,0.162011191248894,0.069833308458328,-0.051572803407907,-0.009543819352984) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.236630618572235,0.036671213805676,0.260481804609299,0.212454766035080,-0.016315585002303,0.040933594107628,0.062841489911079,0.040727369487286,0.078126259148121,0.035063318908215,-0.207863271236420,-0.031321685761213,0.146056205034256,0.072149462997913,-0.052294880151749,-0.151240572333336) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.013940904289484,0.002650943584740,0.104742206633091,0.109402269124985,-0.100875861942768,-0.230278968811035,-0.050760559737682,0.355906873941422,0.769781410694122,0.505345761775970,-0.071888513863087,0.029179770499468,-0.095519974827766,0.006183065939695,0.095017574727535,0.133327826857567) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.120155461132526,0.087194107472897,0.025993980467319,-0.227375522255898,0.020544078201056,-0.217647746205330,-0.240059554576874,0.089486211538315,-0.012734197080135,0.052727997303009,0.206477701663971,0.153547525405884,0.004895403981209,-0.010434738360345,0.201848715543747,0.012628952972591) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.032581467181444,0.137395322322845,-0.100731134414673,-0.066734068095684,0.052794214338064,-0.111944727599621,0.023993382230401,-0.028192548081279,-0.125651568174362,-0.040098242461681,0.182897984981537,0.177290603518486,-0.140804216265678,-0.101885698735714,0.137316420674324,0.097471453249454) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.013613157905638,-0.188590005040169,0.171163395047188,0.038879495114088,0.063201621174812,0.182981789112091,-0.165115103125572,-0.110325619578362,0.220221102237701,0.079428896307945,0.199468657374382,-0.118838943541050,0.198650166392326,0.194356381893158,0.130973413586617,0.072772234678268) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.192418664693832,0.214649572968483,0.226902425289154,0.174684748053551,0.222543522715569,0.200038105249405,0.087352000176907,0.200476735830307,0.258406788110733,0.061740279197693,0.017068868502975,-0.199741646647453,0.048996862024069,-0.000378501077648,0.062543734908104,0.080452069640160) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.380024969577789,0.019644167274237,0.038718406111002,0.002272668294609,-0.041263666003942,-0.023754531517625,0.176781848073006,0.009016679599881,0.069566659629345,-0.007506095338613,0.202710837125778,-0.266949504613876,-0.289966017007828,-0.110753886401653,0.081242613494396,-0.041543137282133) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.129388913512230,0.100059211254120,0.085315935313702,0.066516213119030,-0.181020781397820,-0.257190555334091,0.018299186602235,-0.067017056047916,-0.108245894312859,0.148765683174133,-0.069959923624992,-0.023209577426314,-0.086067132651806,0.044895272701979,-0.225448459386826,-0.065882958471775) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.150376945734024,-0.121113680303097,-0.009654931724072,-0.023210363462567,-0.211100742220879,-0.092124640941620,0.007515571080148,0.028321260586381,-0.092560805380344,-0.022758172824979,0.068637236952782,0.022192804142833,0.121595688164234,-0.036565840244293,0.015108853578568,-0.115171134471893) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.010830353014171,-0.102907538414001,-0.058222629129887,-0.048456564545631,-0.008865064941347,-0.008523380383849,0.057125281542540,-0.138936132192612,-0.026884105056524,-0.041060689836740,0.015564936213195,-0.008229525759816,-0.101681441068649,-0.175317808985710,0.088564030826092,0.118663229048252) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.085415855050087,-0.185120880603790,0.149085104465485,0.049943950027227,0.045611903071404,0.076697714626789,-0.273493617773056,-0.408882260322571,-0.082523621618748,-0.010554658249021,-0.529656827449799,-0.170029878616333,-0.247535958886147,-0.173902899026871,-0.225188910961151,0.087011091411114) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.230146467685699,0.001721701351926,0.101699657738209,-0.041143707931042,0.176578611135483,-0.052698023617268,-0.159881770610809,0.505243718624115,-0.271241188049316,-0.097729824483395,0.123805470764637,0.501811623573303,-0.143819108605385,-0.029969971626997,0.018539484590292,0.130910053849220) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.365567177534103,-0.190591424703598,0.227073848247528,0.026423173025250,-0.124871142208576,0.355181843042374,-0.107773274183273,-0.130237206816673,0.545414805412292,0.120488822460175,-0.142618834972382,-0.211082860827446,0.233483493328094,0.005464919842780,0.130348801612854,0.051435653120279) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.012225024402142,-0.074638307094574,0.011113051325083,0.035817749798298,-0.007438179571182,-0.290543526411057,-0.397255212068558,0.399830013513565,-0.001010300475173,-0.382304549217224,-0.083826109766960,-0.017712494358420,0.101257696747780,0.217741027474403,-0.080749519169331,-0.149664521217346) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.389021933078766,0.089742787182331,-0.289574593305588,0.023470129817724,-0.367505699396133,-0.348290532827377,-0.225760146975517,0.003975420258939,-0.135987669229507,0.631107568740845,0.511923611164093,-0.012881692498922,-0.191677719354630,0.283305823802948,0.080829694867134,-0.201396346092224) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.064014442265034,-0.130000367760658,-0.186077371239662,0.001254408503883,-0.327025741338730,-0.002440136624500,-0.365152269601822,-0.039666831493378,-0.111298002302647,-0.317033857107162,-0.387097090482712,0.090807557106018,0.152315363287926,-0.108974412083626,-0.228132754564285,0.144360572099686) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.120833918452263,-0.165060788393021,0.256751924753189,-0.029448110610247,0.015514420345426,0.037686917930841,0.080439366400242,-0.001298176357523,-0.018167337402701,0.073533385992050,0.076811887323856,-0.127225622534752,0.089636385440826,0.044122040271759,0.034601517021656,0.121732085943222) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.212657660245895,0.096860282123089,0.201385766267776,0.058588683605194,0.037757247686386,0.113001219928265,-0.080253146588802,0.538729250431061,0.132434695959091,-0.141225472092628,0.146226435899734,-0.072208322584629,-0.089418902993202,-0.117499664425850,0.101561591029167,-0.178183928132057) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.189318954944611,-0.152584761381149,0.071635775268078,0.019854739308357,0.154190838336945,0.315971463918686,-0.057724647223949,-0.101060673594475,0.061218798160553,0.295754581689835,-0.119093842804432,0.008361088111997,0.173711061477661,0.025523541495204,0.049790143966675,0.015606705099344) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.176200330257416,0.702093005180359,0.822413802146912,-0.102938696742058) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL6
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 1_6

vec4 hook()
{
vec4 res = vec4(0.039011947810650,-0.201925605535507,-0.100937932729721,-0.529156982898712);
res += mat4(0.029832892119884,-0.021166907623410,-0.234416365623474,-0.033438723534346,-0.085185766220093,-0.116996578872204,-0.007090755738318,0.174592882394791,0.020464258268476,0.097077958285809,-0.137558355927467,-0.071966908872128,-0.000018304854166,0.018192311748862,0.383979648351669,-0.013885820284486) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.197246968746185,-0.055588632822037,0.228662341833115,-0.332040637731552,0.155626147985458,0.097929291427135,0.000142162432894,-0.203544154763222,0.102278359234333,0.017234917730093,-0.031636901199818,-0.110624492168427,0.032211244106293,-0.009150162339211,0.139920651912689,-0.170875012874603) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.086178928613663,-0.111290700733662,0.204915001988411,0.043949551880360,-0.013080398552120,0.006460519973189,-0.116023540496826,-0.082982927560806,-0.019361631944776,0.023293850943446,0.048191167414188,-0.108358338475227,-0.019896814599633,0.047477763146162,-0.075526773929596,0.194055929780006) * FEATURE1_texOff(vec2(-1,1));
res += mat4(0.135977506637573,-0.141560420393944,-0.014981479384005,0.068947911262512,-0.023001374676824,-0.188142418861389,0.187416821718216,0.163338050246239,-0.014375877566636,0.025209419429302,0.030958842486143,-0.148418724536896,0.208397135138512,-0.313620001077652,0.194584026932716,0.037402842193842) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.066492855548859,0.037362441420555,0.162334352731705,-0.024956565350294,0.106974229216576,0.248320832848549,0.375862002372742,-0.301937550306320,-0.169076219201088,-0.109317086637020,0.005563522689044,-0.392124414443970,-0.304016798734665,-0.373804509639740,0.066745184361935,-0.092843800783157) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.122474245727062,-0.221015959978104,-0.265097618103027,0.001782970270142,0.121290937066078,0.228745698928833,0.048521015793085,-0.201452448964119,0.008094448596239,-0.065565481781960,-0.068790063261986,-0.012363657355309,0.246741339564323,0.360592782497406,-0.152838900685310,0.225516423583031) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.053470607846975,0.214173495769501,-0.002739890245721,-0.178942859172821,-0.134070590138435,-0.010496691800654,-0.065219931304455,0.034031808376312,0.011765323579311,-0.072598397731781,0.374758183956146,0.364699482917786,-0.225516214966774,0.086781971156597,-0.264622598886490,0.168061926960945) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.015425602905452,-0.206201329827309,0.106594488024712,-0.127202466130257,-0.205240949988365,-0.235352426767349,-0.071665629744530,-0.074187666177750,0.605107188224792,0.063567310571671,0.016226230189204,0.112271338701248,-0.311876684427261,0.094248950481415,-0.151635304093361,-0.040530163794756) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.021042790263891,0.069603569805622,0.165450513362885,-0.063749022781849,-0.077104218304157,0.035976301878691,-0.212574139237404,0.118477120995522,-0.028996203094721,-0.206265315413475,-0.248958081007004,-0.201443776488304,-0.026448104530573,0.194270730018616,-0.191170692443848,-0.090869724750519) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.099204570055008,-0.155182763934135,0.025842675939202,0.063106514513493,-0.057092867791653,-0.062985032796860,-0.103967860341072,0.178582027554512,-0.038013480603695,-0.149456411600113,-0.036851517856121,-0.144199296832085,0.129759028553963,0.237310513854027,0.149615645408630,-0.009572720155120) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.156039714813232,0.113900274038315,0.190524160861969,-0.215933412313461,0.004229665268213,-0.036785822361708,-0.046798158437014,0.060764648020267,-0.045722775161266,0.112853907048702,0.033503532409668,0.108029857277870,0.143272250890732,0.138122245669365,-0.039412207901478,-0.268782436847687) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.030365403741598,-0.136894479393959,-0.215890288352966,0.057569686323404,-0.053569223731756,-0.107406325638294,0.023069722577929,-0.079374633729458,0.073571406304836,-0.091351546347141,-0.008999491110444,-0.067044958472252,-0.065397277474403,-0.139557227492332,-0.115851208567619,-0.068193152546883) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.128731459379196,-0.036544594913721,0.078722745180130,-0.037026282399893,-0.055989697575569,-0.022594826295972,0.057681374251842,0.114798657596111,0.025302393361926,-0.304240822792053,0.263203293085098,0.089837841689587,0.123476326465607,0.049253255128860,0.248315736651421,0.002161321230233) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.310959190130234,0.336736232042313,0.360916405916214,-0.141232162714005,-0.031839605420828,0.287801802158356,0.109381750226021,-0.040481489151716,-0.008575052022934,-0.087585821747780,0.093694634735584,0.100076191127300,0.006419746670872,0.124197654426098,0.165060922503471,-0.137736722826958) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.034682057797909,-0.019408397376537,-0.355839878320694,-0.072700351476669,0.041745293885469,0.073844112455845,0.068804748356342,-0.133168935775757,-0.020151084288955,0.249697610735893,-0.458815723657608,0.020242352038622,0.133125767111778,0.182495072484016,-0.194814935326576,-0.065912388265133) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.087822899222374,0.025424523279071,-0.049862079322338,0.040077015757561,0.252511858940125,-0.028978614136577,-0.104432672262192,0.060781680047512,-0.069735720753670,0.065111123025417,-0.149436101317406,-0.165339618921280,-0.258934140205383,-0.139148786664009,-0.266885876655579,0.077674135565758) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.599202573299408,-0.230626881122589,-0.382684826850891,0.160733893513680,-0.039258535951376,-0.007034191396087,-0.058903988450766,-0.067545667290688,0.004531295970082,0.195014566183090,-0.141481354832649,-0.125236570835114,-0.384854614734650,-0.057817265391350,-0.115631327033043,-0.176877424120903) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.165553644299507,0.054982360452414,0.382215350866318,0.007510008290410,-0.097456417977810,0.144850328564644,0.001797354430892,0.142476066946983,0.041997995227575,0.025614542886615,-0.301555454730988,-0.073269270360470,-0.118826791644096,-0.036961063742638,0.061467908322811,0.117749646306038) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.072757802903652,0.152919083833694,0.085661008954048,0.124444410204887,-0.036341466009617,0.005186126101762,-0.021899346262217,0.101551666855812,0.025614056736231,0.191921859979630,0.266265094280243,-0.295956522226334,-0.062943868339062,0.000215392035898,0.066021457314491,-0.008123583160341) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.028953820466995,-0.150998607277870,0.067563906311989,0.175053998827934,-0.012870559468865,-0.156881108880043,0.430475950241089,-0.450172960758209,-0.386868685483932,-0.320021390914917,-0.481973439455032,0.478107511997223,0.170107841491699,0.105973072350025,0.070387654006481,0.076402418315411) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.028861358761787,0.329765915870667,-0.308025002479553,-0.145712032914162,-0.347983151674271,0.045841637998819,-0.189755648374557,0.547104477882385,0.157916530966759,0.256403237581253,0.158701092004776,-0.207044795155525,0.055468123406172,0.045584537088871,0.006971196737140,-0.131005138158798) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.003612220752984,-0.024629084393382,0.187005206942558,-0.211156487464905,-0.000436722388258,-0.009940805844963,0.005747019778937,0.170445799827576,-0.170157402753830,-0.061130538582802,0.083136208355427,-0.297156095504761,-0.102223418653011,0.010309730656445,-0.343333840370178,-0.026983615010977) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.777327477931976,-0.638682126998901,-0.436310499906540,0.310175508260727,-0.076076984405518,0.079805932939053,-0.059893932193518,0.139666795730591,-0.145158424973488,-0.401458531618118,-0.317817628383636,0.256538718938828,-0.350376605987549,-0.385641753673553,-0.121220670640469,0.237034603953362) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.171199068427086,0.116108879446983,-0.158014804124832,0.024724477902055,0.197705611586571,-0.276682555675507,0.230720907449722,-0.264402836561203,-0.327914685010910,-0.148647636175156,-0.268520206212997,-0.008092453703284,0.109026432037354,0.105180375277996,0.325198709964752,-0.187629163265228) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.140641272068024,-0.009837990626693,0.074821785092354,0.062026012688875,-0.009851395152509,-0.091580592095852,-0.161596745252609,-0.043115694075823,0.075643233954906,0.189714863896370,-0.009880099445581,-0.006287901662290,0.219843357801437,-0.081513546407223,-0.141828417778015,-0.031844981014729) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.629548490047455,0.116514571011066,0.023985426872969,-0.167203083634377,0.038134723901749,0.011230246163905,-0.032853130251169,0.162771463394165,0.481587231159210,0.108957223594189,0.062387593090534,0.059960566461086,0.343843877315521,0.208311766386032,0.319972246885300,-0.041236970573664) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.272883683443069,0.125875860452652,0.105834521353245,0.090281352400780,0.252917706966400,-0.251113265752792,-0.401649773120880,-0.051044706255198,0.308793395757675,0.333085507154465,0.049887217581272,-0.104343548417091,-0.374948799610138,-0.056144986301661,-0.149013534188271,0.003427722491324) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.049235366284847,-0.063751868903637,-0.108166821300983,0.125492274761200,0.019673615694046,0.027764616534114,-0.179829373955727,-0.045596566051245,-0.005079334136099,0.075743772089481,-0.089904591441154,-0.037542782723904,0.221372708678246,0.174809485673904,0.184844881296158,-0.160958915948868) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.031986869871616,-0.086860820651054,0.057427227497101,-0.140286251902580,-0.030334105715156,0.114159196615219,-0.018208017572761,0.115995071828365,0.138597592711449,-0.142903178930283,-0.124042972922325,-0.145347014069557,0.325239121913910,0.286203384399414,0.158710166811943,-0.349159687757492) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.061628352850676,-0.036786653101444,-0.021543985232711,-0.098575167357922,-0.048748020082712,0.040430266410112,0.103909097611904,0.102573104202747,0.052522104233503,-0.074454337358475,-0.136907547712326,-0.033079355955124,0.246929168701172,0.352716326713562,-0.090990193188190,-0.235044702887535) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.001162813161500,-0.166887804865837,0.036350049078465,-0.053892504423857,-0.095220774412155,-0.090357385575771,-0.062665857374668,-0.092674911022186,0.099375046789646,0.087762504816055,-0.009129875339568,0.106753468513489,0.271149098873138,0.587918460369110,-0.030514415353537,-0.274185597896576) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.162062749266624,-0.058620531111956,0.392451077699661,-0.186297535896301,-0.184395670890808,-0.411208182573318,0.057071141898632,0.146114528179169,0.428535848855972,0.352704793214798,0.464484900236130,-0.230902478098869,0.211804777383804,0.497806340456009,0.153296023607254,-0.331572264432907) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.209850266575813,0.292706191539764,-0.040117494761944,-0.149601399898529,0.199614182114601,-0.010524719953537,0.364870160818100,-0.018190080299973,0.195874497294426,0.147630244493484,0.025597155094147,0.054098948836327,0.128847941756248,0.415714412927628,-0.124547645449638,0.009820601902902) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.113476149737835,-0.328146785497665,-0.064793609082699,0.107545427978039,0.064668238162994,0.094612263143063,-0.013912705704570,-0.040947075933218,0.038906820118427,-0.104306317865849,-0.024716665968299,0.121967554092407,-0.448777168989182,-0.011963768862188,0.039856396615505,-0.095488898456097) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.021603073924780,0.939744412899017,0.331342309713364,0.052506309002638,0.234158888459206,0.031158134341240,-0.158216908574104,0.043063241988420,-0.267760336399078,-0.148626774549484,-0.030487550422549,0.034721072763205,-0.548369169235229,-0.133191391825676,-0.113548979163170,0.062078900635242) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.018094778060913,-0.012235607020557,-0.318183034658432,0.059350267052650,-0.153043016791344,0.054353158921003,0.025724709033966,0.142420336604118,-0.114227406680584,-0.171086043119431,-0.036894727498293,-0.019700612872839,-0.395407199859619,-0.117345161736012,-0.167789533734322,-0.052543662488461) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.052809089422226,-0.002385811414570,0.068060278892517,0.045375633984804,0.035527601838112,0.001089933211915,0.164556562900543,-0.013027718290687,-0.517639636993408,0.043005526065826,-0.251486003398895,0.011787409894168,0.008985226973891,-0.207316339015961,0.151413917541504,0.122090354561806) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.109841890633106,0.247700780630112,0.015315088443458,0.005506669636816,-0.253282070159912,0.191022664308548,-0.230662107467651,-0.019084203988314,-0.322890520095825,-0.072054818272591,-0.001594289904460,0.095718130469322,0.027596611529589,-0.049931325018406,0.089210629463196,-0.056168887764215) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.055524602532387,-0.103439211845398,-0.145853906869888,-0.087248772382736,-0.105627566576004,-0.158982992172241,-0.031173015013337,-0.011220688931644,-0.001519278506748,-0.043174672871828,0.074117667973042,-0.013298859819770,0.002297951839864,0.098948769271374,-0.185117080807686,-0.034947276115417) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.058135997503996,-0.022084629163146,0.130042254924774,0.164368733763695,-0.065525643527508,0.605638504028320,-0.168033823370934,0.004613296128809,0.198296830058098,1.457215666770935,-0.046838659793139,0.008884305134416,-0.193847179412842,0.056747522205114,-0.189751058816910,-0.013192440383136) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.110971152782440,0.177953302860260,0.137820526957512,-0.208682879805565,-0.058165658265352,-0.232636868953705,0.051965288817883,-0.004795450717211,0.191802918910980,0.487951576709747,0.003626348683611,-0.229046583175659,-0.220522999763489,-0.053558517247438,-0.166534870862961,0.422652691602707) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.068010412156582,-0.157829836010933,-0.184297233819962,-0.138629302382469,0.145305663347244,-0.045764278620481,0.192844718694687,-0.020546387881041,0.028965694829822,0.119110196828842,-0.089829698204994,0.003570731030777,-0.087672457098961,0.031348891556263,-0.082464344799519,-0.054456107318401) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.057187739759684,-0.068172626197338,-0.077278442680836,0.086160555481911,0.403980970382690,-0.113943569362164,0.193027585744858,-0.131796404719353,-0.001287665334530,-0.089192502200603,0.113815821707249,0.273406416177750,0.056804552674294,0.054741811007261,0.023164335638285,-0.164301037788391) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.268038302659988,0.108718506991863,-0.075805358588696,0.097613014280796,0.150775760412216,-0.203516870737076,0.255995273590088,0.129072532057762,0.214325755834579,-0.227589383721352,0.173007369041443,-0.147714227437973,0.031970828771591,0.087034240365028,-0.111558251082897,0.110138364136219) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.033338956534863,0.132509544491768,-0.300877422094345,0.002034382428974,-0.023783916607499,-0.265195667743683,0.196754336357117,0.049231648445129,-0.066001065075397,-0.246749058365822,0.053931668400764,0.031683228909969,0.034722391515970,-0.129194825887680,-0.021837849169970,-0.093463405966759) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.094392113387585,0.084459990262985,-0.024913450703025,0.033914182335138,-0.316975206136703,-0.059333566576242,0.470128893852234,0.003752751275897,-0.036941669881344,0.032447010278702,-0.010286307893693,0.037044409662485,0.140682727098465,0.353149890899658,0.253507047891617,-0.275369912385941) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.096556060016155,-0.244287639856339,-0.060236703604460,-0.048550687730312,-0.338221490383148,-0.187118127942085,0.033546280115843,0.300212174654007,0.082293689250946,0.071864657104015,0.216123998165131,0.198109239339828,-0.119592890143394,-0.173690095543861,-0.105041712522507,0.224074020981789) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.083709150552750,0.145734921097755,0.108142204582691,-0.026609256863594,0.017542909830809,0.102175891399384,0.191716030240059,0.197476059198380,0.013605726882815,-0.094955638051033,-0.009461315348744,0.027259437367320,0.003195928875357,0.071425020694733,0.179946452379227,-0.025727041065693) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.014226160943508,0.027972087264061,-0.012734484858811,-0.199572995305061,-0.093071930110455,-0.056928876787424,-0.056915864348412,0.501442611217499,-0.037580557167530,0.019090192392468,0.181403562426567,-0.184263408184052,-0.366969347000122,-0.064065337181091,-0.191413119435310,0.011656344868243) * FEATURE6_texOff(vec2(0,-1));
res += mat4(0.374055922031403,0.080524563789368,0.056735809892416,-0.336043655872345,-0.133585795760155,0.077311672270298,-0.192072853446007,0.907849252223969,-0.613614320755005,-0.595543384552002,-0.755654513835907,0.415642887353897,-0.068562664091587,-0.344231188297272,-0.342036455869675,0.143978118896484) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.055526118725538,0.175814166665077,0.130316391587257,0.122994266450405,0.019625728949904,0.162157222628593,0.500159204006195,0.090729467570782,0.271220296621323,0.479678660631180,0.489980816841125,-0.159056141972542,0.115814752876759,0.032707899808884,0.108411304652691,0.017455542460084) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.049355566501617,-0.113018311560154,0.023481221869588,0.180266052484512,0.453609645366669,-0.128542900085449,0.212450847029686,-0.273721903562546,0.163821145892143,0.103662945330143,0.118053019046783,-0.052185971289873,0.168876856565475,0.180405616760254,0.089551702141762,-0.047122392803431) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-1.219976902008057,-0.334805905818939,-0.339365005493164,0.128976956009865,0.570963919162750,-0.021536983549595,0.576973080635071,-0.658872842788696,0.491945266723633,-0.048455875366926,-0.035585019737482,-0.156489416956902,0.353159010410309,0.196613878011703,0.066984370350838,-0.009156980551779) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.444524109363556,-0.112825468182564,-0.333396017551422,0.103818371891975,-0.236820191144943,-0.092981241643429,0.165294960141182,-0.415665268898010,-0.340221375226974,-0.155807420611382,-0.024985900148749,0.068551674485207,-0.165067523717880,-0.118353053927422,-0.005822269711643,0.095008194446564) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.329962521791458,-0.050726845860481,-0.103485487401485,-0.031423520296812) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 2_1

vec4 hook()
{
vec4 res = vec4(0.105095669627190,0.209772124886513,0.136437311768532,0.165670603513718);
res += mat4(0.186717301607132,-0.131554618477821,-0.110065348446369,-0.064292229712009,-0.252885967493057,0.494317620992661,-0.111934825778008,0.094569519162178,-0.035963416099548,-0.042729187756777,-0.028857614845037,-0.095912553369999,-0.134238660335541,0.105058223009109,-0.046469651162624,0.133013442158699) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.176862701773643,-0.113250583410263,-0.027261264622211,-0.031153365969658,-0.500802159309387,0.017160026356578,-0.021103866398335,0.138950884342194,-0.075928635895252,0.172001644968987,0.112743265926838,0.026632793247700,0.012608976103365,0.108194805681705,-0.002762061078101,0.057556189596653) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.072348520159721,-0.186737552285194,-0.021961936727166,0.015503365546465,-0.273683875799179,-0.116655923426151,-0.087841004133224,0.013322418555617,0.028819182887673,-0.144282698631287,0.072578981518745,0.078964330255985,0.074073821306229,0.124886102974415,0.093055054545403,0.033070031553507) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.193783655762672,0.052658591419458,0.168784558773041,0.075300626456738,-0.447368800640106,0.150570660829544,0.180806145071983,0.284999459981918,-0.682942807674408,0.098227858543396,0.374492019414902,-0.087631069123745,0.114696800708771,-0.149089559912682,0.058496396988630,0.005294766742736) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.086106374859810,-0.250580817461014,-0.020958451554179,-0.392948001623154,-0.281520426273346,0.170587420463562,-0.074762023985386,0.056551862508059,0.262719959020615,0.152566537261009,0.002632283605635,-0.051214545965195,0.027371168136597,-0.038156196475029,0.064465664327145,0.012948811985552) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.053629204630852,-0.245906293392181,-0.020361613482237,-0.094659976661205,-0.173604890704155,0.063282877206802,-0.070681780576706,-0.061302423477173,0.108693458139896,0.174762800335884,0.008641749620438,0.026687983423471,-0.036392573267221,0.122224837541580,0.035311117768288,0.061617810279131) * MODEL1_texOff(vec2(0,1));
res += mat4(0.151886627078056,-0.233199909329414,0.148185789585114,0.147639587521553,-0.341881603002548,-0.086254440248013,-0.037195894867182,0.022194821387529,0.098039984703064,-0.060279086232185,-0.091146320104599,0.052358828485012,0.217313528060913,0.067063726484776,0.106397949159145,0.049756590276957) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.365350246429443,-0.623704850673676,0.138760074973106,-0.151683986186981,-0.082145906984806,-0.043554682284594,-0.159771516919136,0.113490469753742,0.057472635060549,-0.060453884303570,0.115503363311291,0.062264192849398,-0.004260167945176,0.264216631650925,-0.041069962084293,-0.117694936692715) * MODEL1_texOff(vec2(1,0));
res += mat4(0.013176657259464,0.048577245324850,-0.061707943677902,-0.063656494021416,-0.217303901910782,-0.014208670705557,-0.003744812449440,0.183834508061409,0.004758212715387,-0.011294977739453,0.088857389986515,0.025133000686765,0.018884640187025,-0.040308550000191,0.069465905427933,0.023829493671656) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.285886108875275,0.182649150490761,-0.168177574872971,0.097458757460117,0.296253621578217,-0.092435225844383,0.165310025215149,0.240048810839653,-0.043736703693867,0.172262296080589,0.068381913006306,0.112377710640430,-0.235910296440125,-0.075600534677505,0.317210346460342,0.164524137973785) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.191377460956573,-0.095353871583939,-0.108330696821213,0.035670854151249,0.314060896635056,-0.005133299622685,-0.061466719955206,0.185234248638153,-0.057175755500793,-0.088901840150356,0.128401160240173,-0.037676926702261,-0.006921758409590,0.253377437591553,0.115450553596020,0.032739758491516) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.187921464443207,0.086361825466156,-0.114974632859230,-0.053236298263073,-0.102506682276726,0.145788908004761,-0.046789180487394,0.102557048201561,-0.097343817353249,-0.090492822229862,-0.042212270200253,-0.002094422932714,-0.095973707735538,0.198989570140839,0.056911729276180,0.195911258459091) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.615430593490601,-0.012626620009542,-0.271550416946411,0.185542032122612,0.377580612897873,0.051664493978024,-0.082732871174812,-0.065754979848862,0.009587693028152,0.078527808189392,-0.119276426732540,0.092055290937424,-0.090999655425549,-0.241663187742233,-0.149048596620560,0.000617833866272) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.790903985500336,0.348484128713608,-0.231403559446335,-0.022648030892015,-0.105628795921803,0.084255374968052,-0.010130859911442,0.151754707098007,0.119130983948708,0.012586725875735,0.245719254016876,-0.168855756521225,-0.136119693517685,-0.176381364464760,0.034066002815962,-0.018926393240690) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.388637632131577,0.206534266471863,-0.054546821862459,0.077835649251938,0.002578029176220,0.093511588871479,-0.022891398519278,0.140437215566635,0.112026125192642,-0.005716413725168,-0.021042795851827,0.132425472140312,-0.055048823356628,0.145815089344978,0.083914920687675,0.132026001811028) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.037215448915958,0.113101400434971,-0.345655292272568,0.103540882468224,-0.108134955167770,0.130919590592384,-0.124204277992249,0.084105923771858,0.031677994877100,0.360485464334488,-0.080411970615387,0.167224660515785,-0.057902522385120,-0.027479903772473,0.039922211319208,0.239968478679657) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.521283090114594,0.183766528964043,0.111571401357651,0.251035064458847,-0.112450718879700,0.094783395528793,-0.015313426963985,0.037351019680500,0.209360629320145,0.242755323648453,-0.188702672719955,0.021126575767994,-0.094238735735416,0.102636955678463,0.303628593683243,0.263656765222549) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.180565655231476,0.056362323462963,-0.062526792287827,0.043373443186283,-0.120956771075726,0.115235194563866,-0.015095304697752,0.066965699195862,0.050478186458349,-0.049522466957569,0.161044985055923,0.023753752931952,-0.046546954661608,0.094103932380676,0.037725713104010,-0.166705712676048) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.098294250667095,-0.109447918832302,0.090010568499565,-0.047117285430431,0.068210281431675,-0.121641397476196,-0.073583982884884,0.018658274784684,-0.037065472453833,0.277946621179581,0.217138841748238,0.161151975393295,-0.127317026257515,-0.209030792117119,0.054385405033827,0.002914069686085) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.042698279023170,0.015432596206665,-0.097052626311779,-0.148238763213158,0.244263038039207,-0.203767970204353,0.151904270052910,0.002621961990371,-0.021365595981479,0.380908310413361,0.034284420311451,0.245644032955170,-0.104383841156960,0.231574490666389,0.175279796123505,-0.101802304387093) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.228108555078506,0.139220461249352,0.010176300071180,0.028799740597606,0.200624898076057,-0.014834566973150,0.097560927271843,0.044052008539438,0.003487433306873,0.346774697303772,0.062171116471291,0.117528364062309,-0.055155158042908,0.006362171377987,0.042905479669571,-0.122945308685303) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.123009033501148,-0.027874195948243,-0.517290115356445,-0.175790324807167,0.000238961059949,-0.106398575007915,0.065619193017483,-0.315439820289612,0.229418680071831,0.317739874124527,0.169306740164757,0.266073971986771,-0.247153669595718,-0.231572374701500,-0.002007874427363,0.337812840938568) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.034715354442596,0.165613576769829,-0.050591792911291,0.071491122245789,0.214291289448738,-0.217376753687859,0.159244313836098,-0.100695960223675,0.186032041907310,0.449645489454269,-0.053278110921383,0.431829959154129,-0.185428455471992,-0.348510235548019,0.026459015905857,0.369051098823547) * MODEL3_texOff(vec2(0,0));
res += mat4(0.181199535727501,0.202871456742287,0.028988473117352,0.073045425117016,0.085731483995914,-0.438875287771225,-0.000084187777247,-0.124452285468578,0.172429189085960,0.146674275398254,-0.015239058062434,0.300658136606216,0.009568106383085,-0.122902028262615,-0.055949948728085,-0.013382624834776) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.137270778417587,-0.150190815329552,0.160585507750511,-0.068572320044041,0.104323469102383,0.102690987288952,-0.055210821330547,-0.102916426956654,0.066921882331371,0.084753386676311,0.166710242629051,0.122094735503197,-0.080879069864750,-0.096998043358326,0.052196294069290,0.078947685658932) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.073459386825562,-0.070133060216904,-0.207175567746162,-0.546111524105072,0.076812833547592,-0.021746747195721,-0.067649334669113,-0.267048567533493,0.007823781110346,0.013641697354615,0.039496254175901,0.271966487169266,0.042431261390448,-0.103457204997540,0.104410611093044,-0.070373952388763) * MODEL3_texOff(vec2(1,0));
res += mat4(0.245536133646965,-0.162565484642982,-0.125214993953705,-0.037541255354881,-0.004662066698074,-0.111086547374725,0.078953072428703,0.082439824938774,0.076619490981102,0.090193197131157,0.177821934223175,0.174559101462364,-0.089110381901264,-0.013223908841610,-0.034225068986416,-0.023139560595155) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.067701518535614,-0.357363790273666,-0.773108303546906,-0.163886845111847,-0.152516022324562,0.089161455631256,-0.292290598154068,0.133455559611320,-0.030624626204371,-0.123585045337677,0.230329766869545,-0.110247492790222,-0.012969830073416,-0.188298285007477,-0.272572100162506,-0.141635641455650) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.453914463520050,-0.674844861030579,-0.054610908031464,-0.282347947359085,-0.044700760394335,-0.077922478318214,-0.182815149426460,0.186997592449188,-0.025119673460722,0.052270706743002,-0.157272830605507,-0.145548939704895,-0.500501632690430,0.046825364232063,0.089966051280499,0.069209016859531) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.092914447188377,-0.592540442943573,0.023074518889189,-0.056038439273834,0.084137648344040,0.145858243107796,-0.082432389259338,-0.083918161690235,-0.039585512131453,-0.034471035003662,-0.066113218665123,0.021789472550154,-0.106966756284237,-0.231140732765198,-0.097158156335354,0.070797368884087) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.072890765964985,-0.017275577411056,0.333919435739517,-0.256452292203903,-0.040701817721128,-0.124673731625080,-1.567711591720581,-0.299478322267532,0.060138534754515,0.103803440928459,0.589346587657928,0.159100532531738,0.065196260809898,-0.099403321743011,0.139017716050148,-0.041028711944818) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.119907513260841,0.126430302858353,-0.092166379094124,-0.965055108070374,-0.042835760861635,-0.093598313629627,-0.125305995345116,-0.044273857027292,0.655237793922424,-0.276973426342010,-0.088927216827869,-0.433180987834930,-0.262749940156937,-0.034368611872196,0.398639053106308,-0.285960793495178) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.057407915592194,0.242119297385216,0.051738131791353,-0.156280532479286,0.085985042154789,0.037324313074350,-0.085319548845291,-0.096986852586269,0.014315819367766,-0.082586929202080,-0.065841227769852,0.027724014595151,-0.045822981745005,-0.172417119145393,-0.069044657051563,0.019335580989718) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.033971954137087,-0.031839508563280,0.180447742342949,0.019290851429105,0.089695401489735,0.178750127553940,-0.279417812824249,0.137943714857101,-0.134673967957497,-0.083416752517223,0.065830945968628,-0.193903595209122,0.272080957889557,0.188211143016815,0.017351960763335,0.054941099137068) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.000751329527702,0.026341155171394,0.028689647093415,-0.040672872215509,-0.010457667522132,0.140230402350426,-0.088080041110516,-0.097698792815208,0.122940279543400,-0.208598002791405,-0.127523481845856,-0.346457391977310,-0.096123032271862,0.082521989941597,0.004159324336797,0.052993506193161) * MODEL4_texOff(vec2(1,0));
res += mat4(0.008423780091107,0.044249109923840,-0.025969056412578,-0.028182331472635,-0.063165336847305,0.062451332807541,-0.055279780179262,0.006987723056227,-0.060893174260855,-0.133002027869225,-0.115359321236610,-0.220237940549850,0.045048464089632,-0.060965843498707,-0.026028493419290,0.148640811443329) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.068907812237740,-0.097871087491512,-0.109555073082447,-0.019615579396486,-0.096997395157814,0.002345832996070,-0.027425745502114,-0.132865786552429,-0.202899113297462,0.087246380746365,-0.160478651523590,0.006406779401004,-0.019459936767817,0.085445225238800,-0.024561876431108,0.017648184671998) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.064467497169971,0.078555554151535,0.031028727069497,-0.013387062586844,0.037199974060059,-0.166064590215683,0.167493343353271,0.097992509603500,0.023649163544178,0.173277467489243,0.017608489841223,-0.036103282123804,0.095013841986656,-0.150566667318344,0.048509314656258,-0.000111687317258) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.106659166514874,-0.027497567236423,-0.090188972651958,-0.032904163002968,-0.218626633286476,0.024457208812237,0.044732421636581,-0.105424009263515,0.083317942917347,-0.143147304654121,0.035306986421347,0.113307692110538,0.208890914916992,0.073269866406918,0.174977317452431,0.033295497298241) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.108668729662895,-0.131824776530266,-0.125221416354179,-0.177422508597374,0.087264567613602,-0.032819382846355,-0.153021484613419,-0.083714015781879,-0.152410298585892,-0.008969049900770,-0.003020762931556,0.016591105610132,0.067564032971859,0.027981128543615,0.233781322836876,0.082752361893654) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.169790327548981,-0.125997155904770,-0.053949631750584,0.131654530763626,-0.130644038319588,0.081047073006630,-0.463939845561981,0.199455097317696,-0.007315771654248,-0.136449292302132,-0.040257178246975,-0.158360511064529,-0.119150035083294,-0.014587988145649,-0.011018071323633,0.150649130344391) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.088848106563091,-0.246138498187065,0.035851176828146,-0.048212356865406,-0.178971916437149,-0.109048783779144,-0.118208900094032,0.208277508616447,-0.082913056015968,-0.052707623690367,0.219632074236870,0.003309791209176,0.104195371270180,0.176095932722092,-0.143842846155167,0.012446517124772) * MODEL5_texOff(vec2(0,1));
res += mat4(0.178624421358109,0.336489111185074,-0.127467498183250,-0.131936639547348,0.208238005638123,-0.074589282274246,-0.017287824302912,-0.023785099387169,0.047421835362911,0.106078624725342,-0.075842872262001,0.250176787376404,0.130533441901207,-0.087953500449657,0.255960494279861,0.106891207396984) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.178070396184921,0.170982018113136,-0.137912198901176,0.240572512149811,0.013837100937963,0.172283291816711,0.039065681397915,-0.101242952048779,-0.087141104042530,0.108165487647057,-0.075487196445465,0.141419827938080,0.036156963557005,-0.064804114401340,-0.354096144437790,-0.099565260112286) * MODEL5_texOff(vec2(1,0));
res += mat4(0.034520320594311,0.113005422055721,-0.046678170561790,-0.124908044934273,-0.175625741481781,0.188482910394669,-0.001824778737500,-0.136360481381416,0.036265682429075,0.055518876761198,0.102542474865913,0.068551041185856,-0.303978860378265,0.096781402826309,0.110674142837524,-0.038363792002201) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.088051959872246,-0.531541824340820,-0.505557060241699,-0.348934620618820,-0.035505272448063,0.063480161130428,0.033727962523699,-0.035278394818306,0.119350120425224,0.122911088168621,0.362493723630905,0.042068529874086,-0.148879691958427,0.137750700116158,-0.349974811077118,-0.011601165868342) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.060321126133204,-1.037147164344788,-0.051424015313387,-0.707764744758606,0.174149736762047,0.039776477962732,-0.161157444119453,-0.219147801399231,0.016835352405906,0.033441390842199,0.300394117832184,-0.169331714510918,-0.027252579107881,0.283875733613968,-0.063432358205318,-0.056899730116129) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.156314954161644,-0.290102034807205,-0.098917633295059,-0.183058768510818,0.023412670940161,-0.022326549515128,-0.019594989717007,0.053474377840757,0.004484183155000,-0.195137217640877,0.141697362065315,0.040776863694191,-0.040475219488144,-0.278864651918411,-0.063456907868385,-0.074683971703053) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.001738593331538,-0.199863344430923,-1.016223549842834,-0.339489012956619,0.049626938998699,-0.083149261772633,0.232112914323807,0.154287606477737,0.199203267693520,-0.030507387593389,0.278614431619644,-0.103856757283211,-0.271456599235535,0.029187375679612,0.156466111540794,-0.104798600077629) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.208259910345078,-0.489979296922684,-0.087160706520081,-0.742469489574432,0.159710988402367,-0.068232625722885,-0.091909654438496,0.485676705837250,0.097611360251904,-0.194341897964478,0.111745290458202,0.221158027648926,0.311294674873352,-0.335866838693619,-0.470706880092621,-0.026227846741676) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.096605867147446,-0.131194546818733,-0.120155312120914,-0.116251282393932,-0.162170305848122,-0.027489576488733,-0.073665581643581,-0.208548754453659,-0.169922664761543,-0.314013481140137,0.195744231343269,0.267862945795059,0.096245311200619,-0.026142394170165,0.084730751812458,0.047642987221479) * MODEL6_texOff(vec2(0,1));
res += mat4(0.127232998609543,0.025469131767750,-0.122574664652348,-0.144097894430161,0.085950195789337,-0.045461885631084,0.252629727125168,0.047239750623703,0.046738203614950,0.052897237241268,0.132094964385033,-0.199751988053322,-0.276437133550644,-0.005583839025348,0.035393632948399,0.009696350432932) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.038622014224529,-0.018971072509885,-0.122610412538052,-0.209604606032372,-0.103805243968964,0.106778241693974,-0.153491601347923,-0.097722560167313,-0.245944708585739,-0.037436209619045,0.166180998086929,0.093231968581676,0.190992131829262,-0.064444221556187,-0.136190250515938,0.224584355950356) * MODEL6_texOff(vec2(1,0));
res += mat4(0.005273825023323,-0.055708646774292,-0.032535366714001,-0.038274381309748,-0.116563282907009,-0.172283530235291,-0.064207315444946,-0.037715658545494,0.094385609030724,0.148481979966164,0.255685567855835,0.017359182238579,-0.064376182854176,0.110955230891705,-0.044978819787502,0.237631574273109) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.021597322076559,0.023614821955562,-0.005728994496167,-0.042171906679869) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 2_2

vec4 hook()
{
vec4 res = vec4(-0.374020606279373,-0.010367368347943,-0.119242265820503,0.055406752973795);
res += mat4(-0.078923188149929,-0.041851270943880,0.009178611449897,0.006587412673980,-0.052629455924034,0.119007542729378,-0.040076151490211,-0.032945752143860,-0.042793150991201,-0.130129605531693,-0.135619103908539,0.048721417784691,0.066580362617970,0.248007640242577,0.040684200823307,0.205027773976326) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.158637523651123,-0.217385441064835,-0.067513346672058,-0.233554527163506,-0.008417668752372,-0.205896019935608,-0.003012722823769,-0.069086477160454,0.157947376370430,0.089421659708023,-0.042930480092764,-0.113672994077206,0.028898322954774,-0.010709952563047,0.074059791862965,0.105739384889603) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.003823120146990,-0.042573884129524,-0.166518405079842,-0.124605469405651,-0.034161090850830,0.077350288629532,0.154112711548805,0.063402011990547,-0.014406356960535,0.068704381585121,0.028830122202635,0.003485301742330,0.029016440734267,-0.055888839066029,0.134181246161461,0.034217335283756) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.177290171384811,0.048186283558607,-0.076963216066360,0.164545372128487,0.031543191522360,-0.091427735984325,-0.233732104301453,0.196276962757111,-0.228305980563164,-0.245715051889420,-0.238821238279343,-0.005694181658328,-0.018439183011651,-0.035117283463478,-0.087682582437992,0.105054713785648) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.089021481573582,-0.063152000308037,0.145263016223907,-0.028273565694690,0.160766184329987,0.093722946941853,0.150846585631371,0.113519072532654,0.495272099971771,0.223171681165695,0.418239533901215,0.201365828514099,0.053641460835934,0.288693457841873,-0.033462975174189,0.110593639314175) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.051625818014145,0.366505503654480,-0.106682904064655,0.035256095230579,0.140995323657990,0.159019052982330,0.303560733795166,0.041232690215111,-0.083492010831833,-0.080561973154545,-0.091070070862770,0.098185107111931,0.059979099780321,-0.186101809144020,-0.113348484039307,0.155135855078697) * MODEL1_texOff(vec2(0,1));
res += mat4(0.003608901286498,-0.209856018424034,-0.074478887021542,0.154461279511452,0.079487107694149,-0.068329125642776,0.033454153686762,-0.028932310640812,0.021229831501842,-0.333756357431412,0.041917365044355,-0.048485904932022,0.012605041265488,-0.194089069962502,0.010890210047364,-0.007059046998620) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.047469392418861,-0.191077977418900,-0.072250813245773,-0.197913259267807,-0.001993495272473,0.036246228963137,0.178893968462944,0.067092955112457,-0.147492006421089,-0.119356371462345,0.203105136752129,0.047661062330008,0.251186937093735,0.120875291526318,0.179520830512047,0.129232391715050) * MODEL1_texOff(vec2(1,0));
res += mat4(0.149924665689468,0.356509685516357,-0.056841604411602,0.112659953534603,-0.118122689425945,-0.110123261809349,0.040480297058821,-0.066520236432552,0.032929141074419,-0.045525729656219,-0.077689886093140,-0.068011589348316,0.004577114712447,0.009084247983992,-0.047175846993923,0.023924479261041) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.255010664463043,-0.149414524435997,-0.097445771098137,-0.219216808676720,0.090576492249966,-0.014731369912624,-0.206784740090370,0.015233033336699,-0.003053394844756,0.020488776266575,-0.027003386989236,-0.137244567275047,-0.095515638589859,-0.072272986173630,-0.033489644527435,0.151816129684448) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.016062216833234,0.113988354802132,0.166238293051720,-0.032399479299784,0.177504196763039,-0.097903721034527,0.017644356936216,-0.020152663812041,-0.057795319706202,-0.069640316069126,0.142037272453308,0.042021870613098,-0.083724305033684,0.418486356735229,0.128485724329948,0.195114195346832) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.007277971599251,-0.034630503505468,0.087144881486893,0.043270252645016,-0.207178473472595,0.328168213367462,0.369360595941544,-0.038613419979811,0.079073488712311,0.078868746757507,-0.015914829447865,-0.034999437630177,-0.035617657005787,-0.032972734421492,-0.092219904065132,0.099359571933746) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.030446462333202,0.100456953048706,0.118309698998928,-0.247246891260147,-0.360316038131714,-0.295975625514984,-0.039645247161388,-0.020843787118793,-0.104473292827606,-0.219116687774658,0.186086565256119,-0.060546237975359,0.070761732757092,0.050840802490711,0.215371802449226,-0.073404692113400) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.019997939467430,0.442009776830673,-0.056078888475895,-0.152529731392860,0.081682063639164,0.025854691863060,0.270524829626083,0.018446318805218,-0.044248778373003,0.045073229819536,0.085267253220081,0.019206896424294,0.062659718096256,-0.018897322937846,-0.194024994969368,0.040051799267530) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.038904659450054,-0.070668242871761,0.036091007292271,0.069038160145283,-0.323223173618317,-0.386303335428238,-0.183977857232094,-0.015458882786334,0.001791229471564,-0.172838717699051,-0.058574229478836,-0.013483645394444,-0.040589392185211,0.107139475643635,-0.273218393325806,0.005500313825905) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.026768108829856,0.237273469567299,0.059803500771523,-0.151149109005928,-0.036811083555222,0.191740065813065,-0.019707258790731,0.133168980479240,-0.174506425857544,0.173086017370224,-0.134347870945930,0.057501822710037,-0.063009187579155,-0.078239776194096,-0.041418466717005,0.012740909121931) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.029190896078944,0.109609887003899,-0.029494581744075,-0.115082196891308,0.083029143512249,0.087889507412910,0.207743450999260,-0.086386546492577,-0.190283581614494,0.064332716166973,-0.115624472498894,-0.118095524609089,0.011053002439439,0.002326803514734,-0.267897844314575,0.039080705493689) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.014879335649312,-0.139429017901421,0.252753168344498,-0.159140184521675,-0.077099904417992,-0.083924159407616,0.046852547675371,-0.056135531514883,0.070467770099640,0.023445423692465,-0.063327796757221,0.168539226055145,0.064157545566559,0.139720886945724,-0.010998860001564,0.096075288951397) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.082569301128387,-0.183249264955521,0.062615051865578,0.167427092790604,-0.085604086518288,-0.091147534549236,-0.008377932943404,0.021888546645641,-0.087818950414658,-0.000639337755274,-0.048044260591269,0.045171156525612,0.059238132089376,0.020141463726759,-0.013694449327886,-0.127700641751289) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.042476940900087,0.015979768708348,0.048108514398336,-0.143304049968719,-0.050151675939560,-0.066343300044537,-0.061898104846478,-0.111251004040241,-0.027060512453318,0.126036018133163,0.018660053610802,0.080181404948235,-0.108966611325741,0.001511038048193,0.051267169415951,0.425870627164841) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.041968099772930,0.060010477900505,-0.079054653644562,0.141342878341675,0.016284450888634,-0.037086047232151,0.045065682381392,-0.131721675395966,-0.138734281063080,0.113742999732494,-0.047055773437023,-0.053315885365009,0.059608794748783,0.005642736796290,0.260891973972321,-0.060487106442451) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.143863096833229,0.183849349617958,0.048598960042000,0.034464810043573,-0.114802412688732,0.154610723257065,0.109540142118931,0.064516961574554,-0.048418805003166,-0.031417652964592,-0.044535752385855,0.162286683917046,0.202724829316139,0.141992643475533,-0.371562331914902,-0.214952796697617) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.314672648906708,-0.004452695604414,0.065270155668259,-0.475314915180206,-0.002502065617591,0.022033693268895,0.066098071634769,-0.103945404291153,0.008003586903214,0.105579078197479,0.047662232071161,0.161481499671936,0.034163791686296,-0.288549393415451,-0.142864391207695,-0.067482657730579) * MODEL3_texOff(vec2(0,0));
res += mat4(0.096847966313362,0.013810331001878,0.186157032847404,0.182713523507118,0.048601195216179,-0.241114944219589,0.077495492994785,-0.013063349761069,-0.100944928824902,-0.059253592044115,0.087545610964298,0.158361896872520,0.007271131966263,-0.027134533971548,0.257581830024719,-0.144369602203369) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.037359360605478,0.170377358794212,0.187188401818275,-0.245038479566574,-0.129497960209846,-0.026420077309012,-0.062503457069397,-0.007294227369130,-0.120393715798855,0.053489517420530,-0.074470147490501,0.027348712086678,0.055706582963467,-0.227980330586433,0.014476202428341,0.273388177156448) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.140509963035583,0.039972499012947,0.066926896572113,-0.011033049784601,0.002219787100330,0.070885345339775,0.017783841118217,-0.088526114821434,-0.151872396469116,0.089926242828369,0.231349155306816,0.054224852472544,-0.205308437347412,0.002722425851971,0.050191611051559,-0.073915764689445) * MODEL3_texOff(vec2(1,0));
res += mat4(0.084806859493256,-0.148569598793983,-0.083604931831360,0.006030328571796,-0.047250952571630,-0.017555946484208,-0.111784897744656,0.102234259247780,-0.236053436994553,-0.062455631792545,-0.015712743625045,0.079347819089890,0.049677990376949,-0.021426258608699,0.078198537230492,0.136919915676117) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.115595214068890,-0.048714529722929,0.014213806949556,-0.689441084861755,-0.026032518595457,-0.066230468451977,0.030043773353100,0.081191785633564,0.175202965736389,-0.248964220285416,-0.035047404468060,-0.035382799804211,0.074529841542244,0.001970351673663,-0.019278137013316,0.130633518099785) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.359223067760468,-0.311567246913910,0.124917276203632,-0.647104799747467,-0.099626094102859,-0.256260454654694,-0.092528961598873,0.083256237208843,0.425253450870514,0.261932790279388,0.018209487199783,-0.060388870537281,-0.163908109068871,-0.153018653392792,0.024557139724493,-0.504547417163849) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.021681096404791,-0.118295468389988,0.151742398738861,0.001651834230870,0.073699928820133,-0.196792528033257,0.029274638742208,-0.099165365099907,-0.132024258375168,-0.017313739284873,-0.016554534435272,0.150536403059959,-0.037465609610081,-0.225939333438873,-0.053464256227016,-0.210927858948708) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.001720809494145,-0.014720348641276,0.027428422123194,0.069276921451092,-0.238971129059792,0.077803187072277,0.007142274640501,-0.403400510549545,0.190020143985748,-0.168173193931580,-0.108098104596138,0.123648822307587,-0.117053247988224,-0.079789027571678,0.118319123983383,-0.123737759888172) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.210886180400848,0.333712756633759,0.148953258991241,-0.042129650712013,-0.417983263731003,-0.824463069438934,-0.406068742275238,-0.221341535449028,0.927570879459381,0.094926379621029,-0.035295136272907,0.276176869869232,0.145117387175560,-0.000841399654746,0.006387681700289,-0.123878911137581) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.126713261008263,0.010531067848206,-0.293390184640884,0.127235174179077,0.045317690819502,-0.044838804751635,0.383246421813965,-0.057024423032999,-0.037593010812998,0.120806194841862,-0.141960769891739,-0.171790212392807,-0.038041062653065,0.124524250626564,0.190496072173119,-0.360913515090942) * MODEL4_texOff(vec2(0,1));
res += mat4(0.046850133687258,-0.006197731476277,0.077184952795506,-0.051905483007431,-0.044176597148180,-0.000386615574826,-0.022263173013926,0.094756342470646,-0.147530987858772,0.078644081950188,0.080265998840332,0.055188417434692,-0.008153105154634,0.031979624181986,0.119981616735458,-0.034750286489725) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.096979036927223,0.058660723268986,0.070010371506214,-0.018420426174998,-0.077064536511898,0.112641759216785,-0.109211876988411,0.021758837625384,-0.015747444704175,-0.038745708763599,-0.017948150634766,-0.199114695191383,-0.095336690545082,-0.061301145702600,0.012856842949986,0.081642180681229) * MODEL4_texOff(vec2(1,0));
res += mat4(0.024136450141668,0.035773977637291,0.076325707137585,0.108975917100906,-0.006592108402401,-0.031136868521571,0.224125683307648,0.060094732791185,-0.008757586590946,0.414344996213913,0.125037088990211,-0.069294914603233,-0.130914971232414,-0.022323438897729,-0.081547744572163,-0.067596480250359) * MODEL4_texOff(vec2(1,1));
res += mat4(0.067653983831406,-0.089650936424732,-0.094979993999004,-0.081794790923595,0.143946930766106,0.053805761039257,0.049637243151665,0.193317353725433,-0.101792797446251,-0.009134103544056,0.074249856173992,-0.059814155101776,0.088159747421741,-0.012617593631148,-0.012782327830791,0.116418398916721) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.030385790392756,-0.048870179802179,0.062406290322542,-0.123976334929466,-0.057192310690880,-0.025913938879967,-0.079815708100796,0.260945111513138,-0.194870024919510,0.132869288325310,0.003318783128634,0.008869554847479,-0.078052625060081,0.277255147695541,-0.072501137852669,0.094974547624588) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.003503402927890,-0.058591015636921,0.015676137059927,-0.044050354510546,-0.113186202943325,0.194468542933464,0.021133296191692,0.039192721247673,-0.126768752932549,-0.376071065664291,0.019354982301593,0.027635563164949,-0.056282646954060,-0.024875741451979,0.083192862570286,0.120411790907383) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.287146896123886,-0.074403196573257,0.085146911442280,-0.085036002099514,0.075910754501820,0.044951695948839,0.019996287301183,-0.159488394856453,-0.058304835110903,0.339111149311066,-0.179608911275864,-0.084628075361252,0.015397286973894,0.033840678632259,-0.016442565247416,-0.245279103517532) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.030845746397972,-0.180406674742699,0.208702281117439,-0.386977493762970,-0.090317942202091,0.112286873161793,0.236836627125740,-0.070709384977818,-0.053805310279131,0.450497299432755,0.241615802049637,0.249221041798592,-0.014626142568886,0.183762341737747,-0.030487308278680,0.097214654088020) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.143068015575409,0.025423824787140,0.126585572957993,-0.316763639450073,-0.159595727920532,-0.487818539142609,-0.299358904361725,-0.108884260058403,-0.308427691459656,-0.427380532026291,-0.261352300643921,0.001529614790343,0.416394680738449,-0.008868024684489,-0.144312903285027,-0.009175155311823) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.141836404800415,-0.104775533080101,-0.077538527548313,0.114824302494526,0.206994399428368,-0.064224444329739,0.207548558712006,-0.030304102227092,-0.100426428020000,-0.023096401244402,-0.005940187256783,0.119507431983948,0.151517480611801,-0.080855138599873,0.007397634442896,0.138222649693489) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.202381029725075,-0.084051661193371,-0.082424789667130,0.017221821472049,0.005790248513222,0.104614734649658,0.049047678709030,-0.282071113586426,-0.029070127755404,0.292708605527878,0.104188956320286,-0.133520975708961,0.368095606565475,0.067311592400074,0.087735779583454,0.023420389741659) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.442236840724945,0.044778902083635,-0.339252293109894,-0.152165144681931,0.228273212909698,0.001062441384420,-0.175782471895218,-0.107602216303349,-0.039800465106964,-0.346292078495026,-0.065689086914063,-0.039940763264894,0.004273852799088,-0.382348448038101,-0.346770048141479,0.006223000586033) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.035464048385620,-0.168989598751068,0.086295880377293,-0.065169803798199,-0.073067866265774,-0.149450361728668,0.023381302133203,-0.023016082122922,0.040588829666376,0.063379436731339,0.085649281740189,0.116202123463154,-0.089123629033566,0.044015001505613,-0.082625225186348,0.130658298730850) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.189558446407318,-0.091825820505619,-0.030604964122176,-0.165379792451859,-0.283867478370667,0.357920825481415,0.026394162327051,-0.013364030048251,0.014068538323045,0.112045481801033,-0.136958256363869,0.212660983204842,-0.135836854577065,-0.376304447650909,0.023272130638361,-0.001542754820548) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.115267381072044,-0.185407444834709,0.033698134124279,0.061593174934387,-0.013020164333284,-0.061071325093508,-0.243347600102425,0.075001023709774,-0.040030136704445,0.395283609628677,-0.030054777860641,0.245140179991722,-0.023562915623188,0.017607510089874,-0.063717946410179,-0.143887117505074) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.060089416801929,-0.200572863221169,0.034751366823912,-0.297322601079941,0.207017928361893,-0.411662667989731,0.183202192187309,0.011084415949881,-0.206180259585381,-0.025185516104102,0.225311428308487,0.005345910787582,0.286113142967224,0.036120474338531,-0.189438149333000,0.222083419561386) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.577860236167908,0.250972718000412,0.115374356508255,-0.276623845100403,1.343481183052063,-0.360549181699753,-0.019702216610312,0.003663279581815,0.786002278327942,-0.595837771892548,-0.505848646163940,0.162899598479271,0.755638003349304,0.117155984044075,-0.184032917022705,-0.211428821086884) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.019539779052138,-0.082447521388531,-0.141729667782784,-0.009742720983922,0.037054136395454,0.466350436210632,-0.182688057422638,0.158708661794662,0.066314846277237,0.072674594819546,-0.267559260129929,0.169263064861298,0.084289461374283,-0.191839545965195,-0.168422788381577,-0.250491291284561) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.054257012903690,-0.006086961831897,-0.076760925352573,-0.096887737512589,0.020001661032438,-0.008370260708034,0.144328683614731,0.122026778757572,0.067495532333851,-0.109357446432114,0.119491271674633,-0.114738091826439,0.058142844587564,0.130431190133095,-0.122663937509060,0.216367155313492) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.017035039141774,0.034884568303823,-0.018020313233137,-0.155466258525848,-0.219210788607597,-0.287048786878586,-0.041317794471979,0.028504259884357,0.379050850868225,-0.061039436608553,0.094893611967564,0.156262174248695,0.494220048189163,0.074921101331711,-0.007222281768918,0.365721940994263) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.061517167836428,0.029071215540171,0.018875464797020,-0.063526839017868,0.231880784034729,-0.041365645825863,0.035991713404655,0.164358571171761,0.252149283885956,0.011362501420081,-0.314097285270691,0.002862663241103,-0.129717558622360,-0.157239392399788,-0.188299685716629,-0.001132643665187) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.376240879297256,-0.051939118653536,-0.182524442672729,0.084398366510868) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 2_3

vec4 hook()
{
vec4 res = vec4(0.123818531632423,0.235679149627686,0.042682766914368,0.153554514050484);
res += mat4(0.166000366210938,0.128069519996643,-0.151898175477982,-0.053392674773932,-0.306854516267776,0.027022840455174,-0.072876065969467,-0.427377104759216,-0.338220596313477,-0.235384017229080,-0.033515904098749,-0.025427320972085,0.001603569369763,0.067200861871243,0.012058239430189,-0.038241818547249) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.089503854513168,0.110422126948833,-0.094276569783688,0.132313668727875,-0.660116910934448,0.063070550560951,0.192772552371025,-0.262498706579208,-0.140560135245323,0.050873246043921,-0.092247292399406,-0.057483423501253,0.078617230057716,-0.022195283323526,-0.143260464072227,0.206736966967583) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.259646505117416,0.050119802355766,-0.110048055648804,0.022991592064500,-0.186939626932144,0.110977187752724,0.165512159466743,-0.512321531772614,0.081604175269604,0.004215580411255,0.059622805565596,-0.140886932611465,-0.075186297297478,0.039602056145668,-0.172330453991890,0.054971545934677) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.210562184453011,0.345031559467316,-0.186429649591446,0.012362550944090,-0.557197570800781,0.355392217636108,-0.064101919531822,-0.366438955068588,-0.833457410335541,-1.342499971389771,-0.465765506029129,0.219577863812447,-0.336070656776428,-0.227381408214569,-0.232372403144836,0.037143744528294) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.212768465280533,0.041729360818863,-0.023750297725201,0.093343071639538,-0.360609084367752,-0.209636732935905,0.098143719136715,-0.195332527160645,0.124340988695621,0.363520056009293,0.250737518072128,-0.017601370811462,-0.218780145049095,0.141292318701744,-0.280053883790970,-0.019810646772385) * MODEL1_texOff(vec2(0,0));
res += mat4(0.076163880527020,-0.201555445790291,0.138199567794800,0.137982442975044,0.137251898646355,-0.002421985613182,0.319161921739578,-0.688281595706940,-0.053706165403128,0.037944134324789,0.028679572045803,0.108943104743958,-0.095423825085163,0.037418205291033,-0.212391093373299,0.107986353337765) * MODEL1_texOff(vec2(0,1));
res += mat4(0.252744644880295,0.129055172204971,-0.153323769569397,0.105603791773319,-0.148636698722839,-0.003614725312218,0.032750926911831,-0.325012296438217,-0.006468470208347,-0.099927052855492,-0.065147370100021,0.053423300385475,-0.126472815871239,-0.553467273712158,-0.520057618618011,0.033318772912025) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.201263904571533,-0.058398719877005,-0.062656983733177,-0.022855360060930,0.047365583479404,0.031423475593328,0.135197818279266,-0.313496470451355,0.071737281978130,0.136289373040199,-0.043328907340765,-0.109650634229183,-0.159857496619225,0.117118604481220,-0.166404530405998,-0.165986239910126) * MODEL1_texOff(vec2(1,0));
res += mat4(0.224044561386108,-0.043146785348654,-0.105806462466717,0.071421429514885,-0.294789373874664,0.164260938763618,0.057301893830299,-0.265754342079163,-0.087211817502975,0.085801236331463,-0.084196753799915,0.131843954324722,-0.144329696893692,0.077023513615131,0.001022806856781,-0.053952023386955) * MODEL1_texOff(vec2(1,1));
res += mat4(0.011452151462436,-0.125953450798988,-0.006446881685406,0.024098100140691,0.255017220973969,-0.054288327693939,-0.386237472295761,0.259181171655655,0.015462772920728,-0.166838660836220,-0.319942176342010,-0.081232920289040,-0.097604341804981,0.309955596923828,0.061274591833353,0.102362230420113) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.054332830011845,-0.036818943917751,0.147755622863770,-0.156624257564545,-0.077340610325336,0.175563737750053,-0.259022742509842,0.443296313285828,0.180076673626900,-0.348658353090286,-0.062320675700903,0.209534570574760,-0.071997277438641,-0.044788386672735,0.140213161706924,-0.452226638793945) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.199240803718567,-0.255540579557419,0.070416547358036,-0.135230720043182,-0.068572096526623,0.027560187503695,0.083932206034660,0.212012052536011,-0.002707708161324,-0.118833072483540,0.041893683373928,-0.180216968059540,-0.096992820501328,0.020426634699106,-0.024540528655052,-0.020370425656438) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.094014950096607,-0.052130743861198,-0.103710375726223,0.177462518215179,-0.014081510715187,-1.111525177955627,-0.307517647743225,0.238613113760948,0.277762860059738,0.262093305587769,-0.157107800245285,-0.223969310522079,0.204663306474686,0.091141924262047,0.351541817188263,-0.325212538242340) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.303684771060944,-0.087931990623474,0.359018146991730,-0.371897220611572,0.064948201179504,-0.247042953968048,0.086271904408932,0.104641415178776,0.426896899938583,0.208071798086166,-0.308587610721588,0.317091226577759,0.074602119624615,-0.202960520982742,0.116822369396687,-0.859677374362946) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.285046726465225,0.137022837996483,0.117857433855534,0.365370512008667,-0.176933094859123,-0.041019637137651,0.059319302439690,0.252310723066330,0.243159145116806,-0.241868481040001,-0.285352200269699,0.103655859827995,-0.634035110473633,0.133856832981110,0.012696856632829,0.104082770645618) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.094869114458561,-0.172648787498474,0.100228957831860,-0.086864084005356,-0.249166756868362,-0.282710701227188,-0.414976418018341,0.232843324542046,-0.107386492192745,0.107658170163631,-0.211761996150017,-0.151374578475952,-0.173756107687950,0.106590948998928,0.116676993668079,-0.159066244959831) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.054571464657784,0.018493270501494,0.109717398881912,-0.313233256340027,0.135696992278099,-0.173841089010239,-0.048326738178730,0.000188309611985,-0.038664828985929,0.061371620744467,-0.083326376974583,0.227285772562027,-0.313354492187500,0.079227544367313,-0.067217014729977,0.011530347168446) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.173506483435631,-0.054721061140299,0.100871294736862,-0.134467408061028,0.109279595315456,-0.012367731891572,0.130324602127075,-0.073279939591885,0.156232371926308,0.205230012536049,-0.381092280149460,0.253967523574829,-0.013781157322228,-0.136026129126549,0.052048604935408,-0.206623196601868) * MODEL2_texOff(vec2(1,1));
res += mat4(0.237457200884819,0.093659080564976,0.012708805501461,0.081116683781147,0.147278934717178,0.018859434872866,-0.135910049080849,0.158625543117523,0.024839023128152,0.029737005010247,-0.160389810800552,-0.048270817846060,-0.058267064392567,-0.030926607549191,-0.082022115588188,-0.051296435296535) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.077175162732601,0.014797070063651,0.128319576382637,-0.833795785903931,0.166184678673744,0.035199753940105,-0.137249156832695,0.289447456598282,0.027334852144122,-0.016134796664119,-0.184087976813316,0.334444254636765,0.113127231597900,0.246284931898117,-0.102459490299225,-0.339625060558319) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.156986102461815,-0.166274711489677,0.065964773297310,0.077272765338421,0.190810680389404,0.418027520179749,-0.286427676677704,0.056538771837950,0.115278899669647,-0.015612139366567,-0.046273525804281,-0.094243444502354,0.129968494176865,0.043360587209463,-0.033296447247267,0.014077951200306) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.194375768303871,-0.025115987285972,0.268939197063446,-0.136202365159988,-0.071371883153915,-0.178876534104347,-0.468499451875687,0.296594589948654,-0.100063785910606,0.128498405218124,-0.155206128954887,0.347872495651245,-0.097659289836884,-0.405456691980362,-0.326974481344223,-0.435671031475067) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.212576776742935,-0.004010944161564,0.097419388592243,0.229033216834068,0.232699885964394,-0.388539105653763,-0.115991204977036,0.177647352218628,0.067348457872868,-0.000126674174680,-0.125511229038239,0.423029303550720,-0.129375919699669,-0.222855806350708,-0.176641359925270,0.339211046695709) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.095979854464531,0.214317649602890,0.003818398341537,0.436272293329239,0.360054880380630,0.105467855930328,-0.248402848839760,0.218282923102379,0.077435605227947,0.170851528644562,0.085411973297596,0.216520786285400,0.040059756487608,-0.037520680576563,-0.049508884549141,-0.071665480732918) * MODEL3_texOff(vec2(0,1));
res += mat4(0.094341203570366,0.120167963206768,0.025892103090882,0.160497501492500,0.012777557596564,0.266087502241135,-0.334378480911255,0.239038452506065,-0.008275834843516,0.091454088687897,0.018261713907123,0.285344272851944,0.009554033167660,0.125484466552734,0.044121492654085,-0.214425504207611) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.322080492973328,-0.087835192680359,0.053567167371511,0.211901605129242,0.205503150820732,0.053738791495562,-0.274022966623306,0.181872487068176,0.026698524132371,-0.014104253612459,-0.047002147883177,0.213956832885742,-0.004429993685335,0.027611777186394,-0.075297579169273,0.082171648740768) * MODEL3_texOff(vec2(1,0));
res += mat4(0.234772831201553,-0.065500929951668,-0.181970670819283,0.259686321020126,0.103084117174149,0.305343717336655,-0.162506446242332,0.236925944685936,-0.052742023020983,0.114186875522137,0.098104268312454,0.153381735086441,0.057515237480402,-0.012056324630976,0.000069321693445,-0.106912277638912) * MODEL3_texOff(vec2(1,1));
res += mat4(0.005350897088647,-0.376500219106674,-0.146424174308777,-0.088621392846107,-0.189468219876289,-0.164483830332756,0.090936236083508,0.149462103843689,0.277480423450470,-0.122537754476070,-0.120673857629299,-0.421714454889297,0.077174425125122,0.038356211036444,0.261324167251587,-0.225904703140259) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.050543643534184,-1.171389460563660,-0.266111105680466,-0.291929364204407,-0.020264742895961,-0.174158021807671,0.005450513679534,0.004199872724712,0.032067153602839,-0.115618988871574,0.077710092067719,-0.322153925895691,0.123202800750732,-0.191821798682213,0.345403105020523,-0.331875801086426) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.090350218117237,-0.041693389415741,-0.048217833042145,0.007258416153491,-0.053186316043139,-0.087975926697254,0.003717379178852,0.029406609013677,0.019064517691731,0.098067350685596,0.046911589801311,0.065763495862484,-0.185185700654984,0.000246783922194,0.279406189918518,0.143281951546669) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.030148768797517,0.196289300918579,-0.192291945219040,0.050711743533611,-0.364219486713409,-0.956075847148895,0.161361187696457,0.104872226715088,0.165863171219826,0.043747358024120,-0.199532732367516,-0.139436796307564,0.075692415237427,-0.213910415768623,-0.038633503019810,-0.061255306005478) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.242214620113373,0.176670059561729,0.128777265548706,-0.111001104116440,-0.615971565246582,-1.050469279289246,0.205605357885361,0.137831032276154,-0.405844390392303,0.320233434438705,0.194571211934090,-0.535862684249878,0.119757674634457,0.304304063320160,0.239362686872482,-0.035067789256573) * MODEL4_texOff(vec2(0,0));
res += mat4(0.035740938037634,0.164814010262489,0.078703798353672,0.085886858403683,-0.054618228226900,-0.207957759499550,0.157420009374619,-0.104353517293930,0.174215331673622,-0.084729969501495,0.018867865204811,0.364196091890335,0.108510397374630,0.046207301318645,0.084630712866783,-0.566110670566559) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.101699784398079,0.000523063587025,-0.073319733142853,-0.007750027813017,-0.091695070266724,-0.014987578615546,0.052953254431486,-0.085237450897694,-0.083660967648029,0.017462234944105,0.147608593106270,-0.005819180514663,0.116811290383339,0.087001144886017,0.000763319665566,0.044973120093346) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.173551201820374,-0.035191126167774,-0.029488638043404,0.078881382942200,-0.226649254560471,0.005161704029888,0.027987530454993,0.057903714478016,-0.240537822246552,-0.314928561449051,0.136600717902184,0.239990502595901,0.132345438003540,0.336901903152466,0.080473177134991,-0.012075607664883) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.036456923931837,-0.060560211539268,-0.016270060092211,-0.051501430571079,-0.004641360603273,0.030339963734150,0.125389531254768,-0.168866112828255,-0.042064949870110,-0.041110869497061,-0.015056638047099,0.064492121338844,0.055717915296555,0.023770097643137,0.149230957031250,-0.341764152050018) * MODEL4_texOff(vec2(1,1));
res += mat4(0.059026833623648,-0.071471974253654,-0.108524248003960,0.063320964574814,-0.126332074403763,0.097641274333000,0.113362468779087,-0.194506779313087,0.038275182247162,0.052527043968439,0.136193871498108,-0.031478911638260,0.157294139266014,0.079596556723118,0.190778225660324,0.007901608943939) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.058731976896524,0.225067436695099,-0.020737467333674,0.007614512462169,0.089964278042316,-0.094616860151291,0.169277355074883,-0.069750539958477,0.087604098021984,0.294244766235352,-0.262336134910583,0.217406481504440,0.059912834316492,0.128804057836533,-0.057339429855347,0.024399999529123) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.001648363308050,-0.113876312971115,0.125476047396660,0.001509540248662,0.121656112372875,-0.224329605698586,0.156120091676712,-0.301932930946350,0.164821997284889,0.123156309127808,-0.233525797724724,-0.021869441494346,-0.007314010057598,0.171985134482384,-0.207443371415138,-0.043001875281334) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.113948218524456,-0.182998612523079,0.196869879961014,-0.069472618401051,-0.121789596974850,-0.069378532469273,-0.058240860700607,0.055158410221338,-0.256295472383499,-0.011270782910287,-0.332914233207703,-0.117904633283615,-0.154864877462387,-0.070936791598797,0.093894496560097,-0.011235882528126) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.221122801303864,0.110190138220787,0.058775257319212,0.349150836467743,0.355014085769653,0.157992005348206,-0.096029743552208,0.107988812029362,0.262674719095230,-0.202708378434181,0.470666676759720,-0.047547519207001,-0.072143048048019,-0.016484079882503,0.085945256054401,-0.076450444757938) * MODEL5_texOff(vec2(0,0));
res += mat4(0.294049054384232,0.031911645084620,0.181740447878838,-0.077536374330521,-0.314247220754623,0.059150613844395,-0.032433193176985,0.200646430253983,-0.234319701790810,0.002256127074361,-0.001247886102647,0.097626358270645,-0.090958200395107,0.030230134725571,0.032116703689098,0.042712990194559) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.094162836670876,0.075715810060501,0.021636540070176,-0.213692560791969,0.162979900836945,0.019689247012138,0.007620695978403,0.060989212244749,-0.163715526461601,0.067915022373199,-0.121295161545277,-0.108349472284317,0.056171052157879,-0.020206952467561,-0.057318840175867,-0.035769775509834) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.111699305474758,-0.130867928266525,-0.151438459753990,0.103772610425949,0.105778746306896,-0.108537703752518,-0.010666647925973,0.037209775298834,0.217502996325493,-0.353045642375946,-0.002074972027913,-0.218664124608040,-0.022756248712540,-0.051394741982222,0.271758288145065,0.045336522161961) * MODEL5_texOff(vec2(1,0));
res += mat4(0.214575365185738,0.100276254117489,0.016655473038554,-0.137472376227379,0.069349907338619,-0.071610413491726,0.057637486606836,-0.081218101084232,-0.190899834036827,-0.013627349399030,-0.095759868621826,0.037487514317036,0.067684702575207,0.056820426136255,0.079350948333740,-0.149081259965897) * MODEL5_texOff(vec2(1,1));
res += mat4(0.066193066537380,-0.359785556793213,0.200013026595116,-0.114831060171127,-0.079821914434433,-0.204614803195000,0.215738385915756,-0.051824167370796,-0.071831338107586,0.507309317588806,0.040636833757162,0.120641455054283,-0.336566656827927,-0.075228177011013,-0.150238782167435,0.296324312686920) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.073607079684734,-0.508216619491577,0.087712995707989,-0.465314239263535,0.265519678592682,-0.219261839985847,0.138472124934196,-0.279961943626404,-0.303898364305496,0.266591846942902,-0.011356823146343,-0.117604270577431,0.010909591801465,-0.138297274708748,-0.105782866477966,0.008304357528687) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.051727339625359,0.075116135179996,-0.012974173761904,-0.363612234592438,-0.221859797835350,-0.120817072689533,0.001934778410941,0.101120971143246,0.071022383868694,0.189021676778793,0.203226074576378,-0.068581715226173,0.139039441943169,-0.391022264957428,-0.025808045640588,0.008169073611498) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.154896393418312,-0.270665436983109,-0.011236262507737,-0.197355642914772,0.034845616668463,0.026528101414442,-0.044475991278887,-0.023361725732684,-0.275803893804550,0.554841160774231,0.086644299328327,-0.371929049491882,0.029707755893469,0.029354825615883,0.005221711006016,-0.123667784035206) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.344147026538849,-0.787386775016785,0.022664384916425,-0.112239480018616,-0.399533063173294,0.017691364511847,-0.059637542814016,0.083941839635372,-0.238849923014641,-0.121481627225876,-0.137730345129967,-0.425624608993530,-0.245002314448357,0.094118237495422,0.243859976530075,-0.304670542478561) * MODEL6_texOff(vec2(0,0));
res += mat4(0.190237492322922,-0.133068352937698,0.244986131787300,-0.156624421477318,-0.214211106300354,-0.131669148802757,-0.102455213665962,-0.156015917658806,-0.004802656825632,0.513375937938690,-0.366603791713715,0.197080641984940,-0.185784563422203,-0.135924354195595,-0.116874180734158,0.100832909345627) * MODEL6_texOff(vec2(0,1));
res += mat4(0.080305263400078,-0.147452086210251,0.077177137136459,-0.105772987008095,0.201781392097473,-0.007546758279204,0.019305014982820,0.013028132729232,-0.209713324904442,0.357656747102737,-0.079756885766983,0.247019618749619,-0.109930515289307,0.118923775851727,0.000979200471193,-0.022315487265587) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.023237936198711,-0.034085091203451,-0.002254798077047,-0.189509019255638,0.178029149770737,-0.169296488165855,0.093429721891880,0.022136017680168,-0.279677420854568,0.192887946963310,-0.078162983059883,-0.001631822553463,-0.134921029210091,-0.036877740174532,0.266452729701996,-0.104222215712070) * MODEL6_texOff(vec2(1,0));
res += mat4(0.174877554178238,0.068959094583988,0.047555636614561,-0.033075869083405,-0.132016748189926,-0.099847368896008,-0.013349007815123,-0.045575495809317,-0.081664599478245,0.096498087048531,-0.127313524484634,0.256167858839035,-0.161304548382759,0.031661473214626,0.037718623876572,0.137128114700317) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.073653034865856,-0.026887398213148,0.138564482331276,0.056419529020786) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 2_4

vec4 hook()
{
vec4 res = vec4(0.001247022766620,0.156007617712021,0.121889196336269,0.194241762161255);
res += mat4(0.057320557534695,-0.008579414337873,0.102935820817947,-0.017878642305732,-0.052669644355774,-0.032270487397909,-0.035982653498650,0.026278274133801,-0.122332014143467,-0.136469334363937,0.060013037174940,-0.058334149420261,-0.113111801445484,0.028892865404487,-0.135495603084564,-0.301861673593521) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.034321013838053,-0.054877117276192,0.172838613390923,0.055229116231203,-0.195628657937050,-0.093142725527287,-0.382572621107101,0.213207527995110,-0.115639656782150,0.044757079333067,-0.001174645381980,-0.031843077391386,-0.280245870351791,0.107338450849056,-0.101228557527065,-0.187331959605217) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.134502589702606,-0.052294660359621,0.088386684656143,-0.020457940176129,0.219753250479698,-0.235734164714813,0.140048071742058,-0.125127717852592,0.234586238861084,-0.062482729554176,0.030038371682167,0.006709880195558,-0.146678671240807,0.017867663875222,-0.085597649216652,0.037556000053883) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.010795986279845,-0.083980068564415,0.280916571617126,0.186727583408356,-0.010863613337278,-0.116643257439137,0.074178196489811,0.158250063657761,0.080672316253185,-0.017966078594327,0.158128306269646,0.531810700893402,0.030791375786066,0.019413622096181,-0.064002707600594,-0.035860080271959) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.075770549476147,0.244887009263039,0.149977982044220,0.179763838648796,-0.006357380189002,0.211331367492676,-0.102183356881142,-0.017606815323234,0.219908162951469,0.070228792726994,-0.884698092937469,-0.330751329660416,-0.484171956777573,-0.055140204727650,-0.375870108604431,-0.228295266628265) * MODEL1_texOff(vec2(0,0));
res += mat4(0.247392162680626,0.060566540807486,0.063298396766186,-0.099637553095818,0.206813409924507,-0.063740521669388,0.034927308559418,-0.090529449284077,-0.126760169863701,0.100254409015179,-0.000274042598903,0.038342162966728,-0.243709594011307,0.020100975409150,0.002266830066219,0.001117781270295) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.106722153723240,0.111288264393806,-0.118574298918247,-0.097478501498699,-0.021127795800567,0.229207813739777,0.179901599884033,0.028013620525599,0.090957634150982,0.049255803227425,0.209943830966949,-0.108370088040829,-0.281741291284561,-0.079380609095097,0.056570146232843,-0.091839514672756) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.056375347077847,-0.036926455795765,-0.108688950538635,-0.192858517169952,-0.112391933798790,0.351922899484634,0.053489089012146,0.060587048530579,-0.065878823399544,-0.037085521966219,-0.319921195507050,0.194581955671310,0.011475906707346,-0.059832118451595,-0.424030095338821,0.015038362704217) * MODEL1_texOff(vec2(1,0));
res += mat4(0.272579312324524,0.076439820230007,-0.127223059535027,-0.152483224868774,-0.133223265409470,0.014358112588525,0.026454333215952,0.031734354794025,0.047925226390362,0.003693264909089,-0.093123756349087,-0.078604631125927,-0.076748542487621,-0.107952021062374,-0.054219398647547,-0.038578134030104) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.031898513436317,-0.084095202386379,0.033903785049915,0.017732087522745,-0.016712391749024,0.001727834925987,0.126004531979561,-0.057928889989853,0.060644801706076,-0.032658174633980,0.060994621366262,-0.028551327064633,-0.078216582536697,0.028671747073531,0.240262180566788,0.132314786314964) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.034733239561319,0.034959528595209,-0.015354800969362,-0.019622206687927,-0.172230839729309,-0.076171182096004,-0.247404471039772,0.152845606207848,-0.002743591321632,0.063804440200329,0.042984995990992,0.023433379828930,-0.079287990927696,0.096477545797825,0.107097476720810,0.044509600847960) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.125577017664909,0.029537446796894,-0.047145299613476,-0.073446549475193,0.113289959728718,0.185908958315849,0.109386816620827,0.245623260736465,-0.140142828226089,0.037362188100815,-0.055230140686035,-0.053043495863676,0.073227100074291,0.098490975797176,0.081613488495350,-0.074290893971920) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.207061246037483,0.111842773854733,-0.058998145163059,0.000548750918824,0.072274051606655,0.059363543987274,0.036496922373772,-0.062962584197521,-0.203256741166115,-0.039811521768570,0.210573017597198,-0.207862600684166,0.168299585580826,0.217107594013214,-0.023880837485194,-0.149966716766357) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.115606650710106,0.244828328490257,0.245788440108299,0.039421308785677,-0.325677752494812,-0.439891755580902,0.107765823602676,0.035204481333494,-0.255150407552719,-0.003227832959965,-0.029282493516803,-0.049659885466099,-0.038615174591541,-0.027804704383016,-0.021812919527292,0.398117870092392) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.113259024918079,0.081825919449329,-0.020188592374325,0.113593056797981,-0.294034898281097,0.011194815859199,0.147146850824356,0.169927164912224,-0.082361206412315,-0.238875165581703,0.213082239031792,0.071340039372444,-0.228426292538643,0.060384348034859,-0.032710246741772,-0.057106256484985) * MODEL2_texOff(vec2(0,1));
res += mat4(0.020280987024307,-0.028434472158551,-0.100872725248337,-0.032773546874523,-0.040612954646349,-0.095597043633461,-0.122041158378124,0.018885560333729,-0.175984278321266,0.063441462814808,0.119495332241058,0.029700132086873,0.012373125180602,-0.137884855270386,0.202715903520584,0.008907356299460) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.112532623112202,-0.366539448499680,-0.316373556852341,0.109865546226501,0.240843996405602,0.068909399211407,0.152030915021896,0.051466975361109,-0.152324542403221,0.128415644168854,0.262780070304871,-0.238060981035233,0.067909933626652,-0.418485522270203,0.149953782558441,-0.013134304434061) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.019166633486748,-0.068157278001308,-0.144872978329659,-0.150499418377876,0.017027202993631,0.109879724681377,0.289336413145065,0.095889627933502,-0.414356410503387,-0.032552856951952,0.325767904520035,-0.061953894793987,0.301775097846985,0.038414757698774,0.141648158431053,0.044637653976679) * MODEL2_texOff(vec2(1,1));
res += mat4(0.279111236333847,0.002609716262668,0.110970944166183,0.173545613884926,0.083687692880630,0.136063203215599,0.030811604112387,-0.114598870277405,0.002013355260715,0.007263157982379,0.081371963024139,0.024879053235054,-0.184244558215141,-0.115001037716866,-0.172122463583946,0.033623065799475) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.139153242111206,-0.048439707607031,0.262725889682770,0.006611433811486,0.058761663734913,-0.038994841277599,0.107418306171894,0.081780999898911,-0.056585606187582,0.164140656590462,0.034354418516159,0.167769014835358,0.061277188360691,0.208542913198471,-0.108940817415714,0.129199549555779) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.080089926719666,-0.095293372869492,0.000483016978251,0.001295956782997,-0.016425669193268,0.065429531037807,0.106529898941517,0.066626109182835,-0.072887092828751,0.076039835810661,0.045574419200420,0.144959852099419,-0.058311853557825,-0.095358096063137,-0.011672868393362,0.097165159881115) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.234233364462852,-0.073632985353470,-0.267287194728851,-0.012178875505924,0.237049177289009,0.055866252630949,-0.058080680668354,-0.095336049795151,-0.062395907938480,0.018864557147026,0.191803157329559,0.191102549433708,0.099881850183010,-0.256813138723373,0.139239311218262,0.279660314321518) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.411724209785461,-0.029265910387039,0.025723516941071,-0.131896197795868,0.173626780509949,0.067003831267357,-0.056162517517805,0.062700778245926,-0.270050168037415,0.093158818781376,0.216867297887802,0.019867653027177,0.002037612022832,-0.867278456687927,0.537820398807526,0.077103182673454) * MODEL3_texOff(vec2(0,0));
res += mat4(0.034190140664577,0.119513899087906,-0.054521519690752,-0.130601018667221,0.169243291020393,0.282191276550293,0.181289330124855,0.060233764350414,-0.078486539423466,0.065033882856369,0.009726081043482,0.091596961021423,-0.009192171506584,-0.147561475634575,-0.064405649900436,0.074663437902927) * MODEL3_texOff(vec2(0,1));
res += mat4(0.352975368499756,-0.200770333409309,0.328542977571487,0.095749825239182,0.247504219412804,-0.084577724337578,0.056357927620411,-0.007748088333756,0.049656931310892,0.161754712462425,0.174300730228424,-0.056897982954979,0.125938519835472,0.204890906810760,0.070756241679192,-0.019707683473825) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.340749830007553,0.228805929422379,-0.301750421524048,-0.049223706126213,0.060968235135078,-0.029206965118647,-0.159537032246590,0.170642420649529,0.131621614098549,0.251462072134018,0.102911673486233,0.025725439190865,-0.020972881466150,0.204549223184586,0.225014388561249,-0.000287543458398) * MODEL3_texOff(vec2(1,0));
res += mat4(0.002374300267547,-0.018597129732370,-0.126764357089996,-0.156287789344788,0.180699914693832,-0.018771776929498,0.189566150307655,0.035359561443329,0.026644065976143,0.105267785489559,0.156434059143066,-0.017424689605832,-0.068533971905708,0.228662326931953,0.104641422629356,-0.110560856759548) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.221172824501991,0.012761727906764,-0.050483483821154,-0.127836763858795,-0.097940385341644,-0.064960628747940,0.109964884817600,-0.201517209410667,-0.017364272847772,0.041797168552876,-0.043529562652111,0.024491265416145,-0.102657176554203,0.018901765346527,0.129961192607880,-0.069111220538616) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.069975830614567,-0.135099485516548,-0.019640427082777,-0.285651326179504,-0.187523007392883,-0.014010395854712,0.149593383073807,-0.001915133907460,0.025988627225161,-0.134742498397827,-0.151451647281647,-0.065837159752846,-0.280021160840988,0.123715229332447,0.128321781754494,-0.009227991104126) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.304314523935318,0.088786542415619,0.032437171787024,-0.115984819829464,-0.288051813840866,0.019055081531405,0.099597603082657,-0.046745702624321,0.088675282895565,-0.008528379723430,0.164865210652351,-0.043389115482569,-0.167652085423470,-0.245783135294914,-0.065083824098110,0.163774713873863) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.059753131121397,0.120840676128864,-0.035801898688078,-0.040445074439049,-0.005246167071164,-0.000919791462366,-1.010591387748718,-0.377527177333832,0.017871536314487,-0.274473249912262,-0.124867394566536,0.064948908984661,0.046970650553703,-0.085153669118881,0.115828789770603,-0.043437287211418) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.060367748141289,0.212659299373627,-0.467536568641663,-0.222233936190605,0.067703962326050,-0.024596340954304,-0.284682184457779,0.044719543308020,0.243425846099854,-0.239076241850853,-0.008855385705829,-0.011368427425623,0.152670368552208,0.147897988557816,-0.138455659151077,0.225057721138000) * MODEL4_texOff(vec2(0,0));
res += mat4(0.145294964313507,0.318416386842728,0.094603218138218,0.247349962592125,0.176822125911713,0.080084070563316,-0.099422797560692,-0.102272249758244,0.176672756671906,-0.237020581960678,-0.349869906902313,0.118483662605286,0.217501714825630,-0.240280270576477,-0.357701361179352,0.015827782452106) * MODEL4_texOff(vec2(0,1));
res += mat4(0.065548941493034,0.043974965810776,0.073771908879280,0.191697493195534,-0.092883557081223,-0.099828340113163,-0.360237300395966,-0.009095301851630,-0.016074845567346,-0.081925712525845,0.212625443935394,-0.052104562520981,0.059145279228687,-0.044002283364534,0.041169915348291,-0.052361335605383) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.271491646766663,-0.067209966480732,-0.175700977444649,0.024545591324568,-0.130895882844925,-0.080725766718388,-0.027186900377274,-0.064301833510399,0.048715218901634,-0.118877261877060,0.312049359083176,0.119999706745148,-0.281013041734695,0.167451038956642,0.364062428474426,-0.194674789905548) * MODEL4_texOff(vec2(1,0));
res += mat4(0.042589690536261,-0.047164421528578,0.141140624880791,0.071989133954048,-0.139946490526199,-0.066158205270767,-0.038977529853582,-0.029792098328471,0.264793545007706,0.088617689907551,0.232350379228592,0.119825795292854,-0.198513269424438,0.110463701188564,0.052765417844057,-0.047349814325571) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.045034967362881,-0.057207159698009,0.045755974948406,-0.027993647381663,0.041095729917288,-0.030331330373883,-0.128488540649414,-0.118638150393963,0.095280423760414,0.034915514290333,-0.113816626369953,0.126810550689697,0.038164429366589,0.081206113100052,-0.174982324242592,-0.057617489248514) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.258376479148865,-0.139902099967003,0.205621734261513,0.029959991574287,-0.230356171727180,0.046945039182901,-0.024946242570877,0.036420464515686,0.049135029315948,-0.021685484796762,-0.222008123993874,-0.099496856331825,-0.003916096407920,-0.127718046307564,-0.030666440725327,-0.130003079771996) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.155864819884300,0.091059863567352,0.010382878594100,0.037716168910265,0.107101485133171,-0.130134165287018,-0.143835648894310,-0.099479928612709,0.044804293662310,-0.141882061958313,0.024486001580954,0.101817376911640,-0.138466969132423,0.031483985483646,-0.047764074057341,0.101446755230427) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.031609330326319,0.149980053305626,0.132796913385391,-0.143396675586700,0.036281377077103,-0.178400754928589,-0.112542286515236,0.042093239724636,0.025757702067494,-0.011472883634269,-0.157241836190224,0.145065233111382,0.042213596403599,0.014994230121374,0.033073715865612,-0.041179023683071) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.195593193173409,0.102209120988846,-0.076980702579021,0.357722878456116,0.101238153874874,0.023655736818910,-0.071680858731270,-0.216794162988663,0.225629046559334,0.171206593513489,0.028633795678616,-0.427583754062653,0.084643870592117,-0.181194946169853,-0.050908662378788,-0.105233572423458) * MODEL5_texOff(vec2(0,0));
res += mat4(0.278042733669281,-0.088822551071644,0.083145223557949,-0.193987905979156,-0.460766464471817,-0.448865741491318,0.430003404617310,0.204975441098213,0.097421936690807,0.392076611518860,-0.015724599361420,-0.020884003490210,-0.065681084990501,0.178219094872475,0.164106994867325,0.106025658547878) * MODEL5_texOff(vec2(0,1));
res += mat4(0.132516279816628,0.038794923573732,-0.358193576335907,0.134815290570259,0.023195715621114,-0.086475014686584,-0.173099130392075,-0.047081299126148,-0.037279237061739,0.062979318201542,0.101505883038044,0.066767469048500,0.073318503797054,0.019751016050577,-0.159267514944077,-0.168943807482719) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.531121850013733,0.209226608276367,0.400002032518387,-0.031027823686600,0.073320291936398,-0.040052641183138,0.252270519733429,-0.056638374924660,-0.316276133060455,-0.328550189733505,0.201888069510460,0.182229757308960,0.013687174767256,0.326859772205353,-0.069760061800480,0.132185950875282) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.351204097270966,0.153800949454308,0.066873185336590,0.262453526258469,0.268747746944427,0.213036566972733,0.163494288921356,-0.021156778559089,-0.103246502578259,-0.191305562853813,-0.077916383743286,0.162859603762627,-0.164734855294228,-0.022235950455070,-0.071830779314041,-0.117861673235893) * MODEL5_texOff(vec2(1,1));
res += mat4(0.116068311035633,0.032677460461855,0.047418437898159,-0.096972025930882,0.049286492168903,-0.104723073542118,-0.035611979663372,0.224492982029915,-0.086929269134998,0.151265367865562,-0.447170794010162,-0.108026012778282,-0.155885770916939,-0.223611474037170,0.074033133685589,0.194403663277626) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.114098452031612,-0.108917623758316,-0.496633499860764,-0.142068326473236,0.069439843297005,-0.023180337622762,-0.273777246475220,-0.100747317075729,-0.019883170723915,0.029545651748776,-0.345435172319412,-0.183653250336647,-0.241139113903046,-0.162324801087379,0.057939272373915,0.188331127166748) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.126559421420097,-0.047171149402857,-0.123879313468933,-0.076416477560997,-0.256718128919601,-0.136718064546585,-0.246185868978500,0.134325161576271,0.127731159329414,-0.021063327789307,-0.225428327918053,-0.020972099155188,0.250675678253174,-0.023910552263260,0.239930316805840,0.117105416953564) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.008697488345206,-0.130138799548149,0.083373114466667,-0.067958690226078,0.090110518038273,0.082393154501915,0.126019477844238,0.001867473591119,0.107970595359802,-0.133821189403534,-0.520191192626953,-0.143135428428650,-0.118887528777122,0.036626882851124,0.048843927681446,-0.111527957022190) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.089862331748009,-1.400658607482910,-0.733289062976837,-0.003026087768376,-0.196643128991127,-0.224800497293472,0.746021866798401,-0.040491595864296,-0.115002982318401,-0.241998955607414,0.068866334855556,0.280351191759109,-0.355397790670395,0.425805479288101,-0.086751960217953,0.280605852603912) * MODEL6_texOff(vec2(0,0));
res += mat4(0.115192465484142,-0.473229259252548,-0.039043352007866,-0.117414437234402,-0.225352302193642,0.012798709794879,-0.154460698366165,-0.056527446955442,-0.228683501482010,-0.216139256954193,0.134453222155571,0.114925876259804,-0.321138978004456,0.027090815827250,-0.118923932313919,-0.066831223666668) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.064897611737251,-0.110426679253578,0.017127061262727,0.036182798445225,0.059741031378508,-0.015677271410823,-0.003083838149905,0.211421713232994,0.267560780048370,0.025509973987937,-0.480719685554504,-0.056894455105066,0.019363990053535,0.111001126468182,-0.048943679779768,-0.192580536007881) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.070727139711380,-0.240317314863205,-0.189044892787933,0.170214936137199,0.110380545258522,0.373984634876251,0.040165923535824,-0.063601657748222,0.045375242829323,-0.000684791535605,0.050547875463963,-0.289959639310837,0.154994904994965,0.409086227416992,0.014514656737447,-0.286390691995621) * MODEL6_texOff(vec2(1,0));
res += mat4(0.001577161485329,-0.240472197532654,-0.104117296636105,-0.043605417013168,0.028365569189191,-0.092438504099846,-0.012977984733880,-0.132162764668465,0.238571450114250,0.259179115295410,0.047194041311741,0.115792661905289,-0.180159911513329,0.261987656354904,-0.006258337758482,0.069510117173195) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.064842142164707,-0.080427646636963,0.003664376446977,0.393231183290482) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 2_5

vec4 hook()
{
vec4 res = vec4(-0.141153529286385,0.369579762220383,0.124503053724766,0.004592380486429);
res += mat4(-0.020408421754837,0.236376941204071,-0.008904675021768,-0.058818601071835,-0.060252927243710,-0.070926882326603,-0.023491896688938,-0.027835978195071,-0.067370720207691,-0.267309248447418,0.114664591848850,0.003240275429562,0.043212953954935,-0.215214252471924,0.130068346858025,0.019562199711800) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.123872011899948,0.244135037064552,0.088148780167103,-0.145011395215988,0.095836549997330,-0.449562728404999,-0.383078366518021,-0.018607769161463,0.089546687901020,-0.107403039932251,-0.046381294727325,0.018232097849250,0.100918218493462,-0.240350350737572,0.139904752373695,0.051209457218647) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.075195662677288,0.122979566454887,0.031648028641939,0.000375731789973,0.092065751552582,-0.305981516838074,-0.256057411432266,-0.096392996609211,-0.098685570061207,-0.028663599863648,0.007358964532614,0.069787748157978,-0.052690155804157,0.059845153242350,0.040681008249521,-0.024457035586238) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.016105378046632,-0.054605383425951,-0.000770957500208,0.031047986820340,-0.042444821447134,-0.057228252291679,-0.139150187373161,0.033477164804935,-0.023891301825643,-0.265343278646469,-0.086259447038174,-0.026409124955535,0.097540117800236,-0.276699542999268,0.084187276661396,0.066467620432377) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.052417401224375,0.237406954169273,-0.044576644897461,-0.073389157652855,0.123065754771233,-0.455146729946136,-0.297258615493774,0.100846797227859,0.069324567914009,-0.038316920399666,-0.107471011579037,-1.209685206413269,0.163869291543961,-0.044222909957170,0.111614555120468,-0.066610835492611) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.053031355142593,-0.018943281844258,0.016668863594532,-0.050216827541590,0.230441853404045,-0.364167153835297,-0.044842578470707,0.170362591743469,-0.122219644486904,0.052094474434853,0.009677167050540,0.294559776782990,-0.028448659926653,0.082730092108250,0.014857749454677,-0.075877383351326) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.003704496659338,-0.034496977925301,-0.048559829592705,-0.091802872717381,0.074866764247417,0.018760617822409,-0.093685097992420,0.041460853070021,0.028352798894048,-0.024070953950286,0.156306907534599,0.015683438628912,0.102885566651821,-0.313478857278824,-0.013889296911657,-0.001794416573830) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.119125224649906,0.230932772159576,0.036670032888651,-0.205222189426422,0.139166757464409,-0.204405009746552,-0.401219159364700,0.112985864281654,-0.046367857605219,-0.129685670137405,0.110529571771622,-0.359918922185898,-0.012921740300953,-0.317552000284195,-0.046449579298496,-0.615278959274292) * MODEL1_texOff(vec2(1,0));
res += mat4(0.112412840127945,0.153223708271980,-0.036051563918591,-0.030263554304838,-0.114519916474819,-0.086950466036797,-0.011081083677709,0.035822719335556,-0.069408312439919,0.075887359678745,-0.016658170148730,-0.003258044365793,-0.061488285660744,-0.055175591260195,-0.009974752552807,-0.066938795149326) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.051889948546886,0.181666404008865,-0.000266426795861,-0.005779089871794,-0.061798710376024,0.321970105171204,0.213151618838310,-0.159968882799149,0.082996532320976,-0.101699121296406,0.189910829067230,-0.024248315021396,0.017341025173664,0.045199342072010,-0.269327849149704,-0.057180345058441) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.039075121283531,-0.167474046349525,-0.092890202999115,-0.061391390860081,0.045813869684935,0.020769925788045,-0.234480515122414,-0.297055482864380,0.135797157883644,0.078283876180649,0.185430020093918,0.047337770462036,-0.007108116522431,-0.226825252175331,-0.141540721058846,0.163927957415581) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.099247664213181,-0.040374986827374,0.054629616439342,-0.192390695214272,0.121394924819469,0.145884245634079,0.023954089730978,-0.137555509805679,0.139965936541557,0.073139734566212,-0.079973980784416,-0.322518408298492,-0.100237555801868,-0.127390727400780,-0.161922618746758,0.091425791382790) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.039781291037798,0.029705056920648,-0.283772110939026,0.050528876483440,0.062930576503277,-0.109281726181507,0.242115736007690,-0.132744967937469,0.109482057392597,0.093818977475166,0.009801991283894,-0.062430534511805,0.165584668517113,-0.144595578312874,-0.327816247940063,-0.138008847832680) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.162977263331413,-0.267666578292847,-0.917376995086670,0.209870025515556,-0.084132552146912,-0.331631153821945,-0.127255618572235,-0.740888893604279,0.053575083613396,0.037262555211782,0.249736040830612,0.076116986572742,0.016543539240956,-0.039007168263197,-0.074089400470257,0.200608968734741) * MODEL2_texOff(vec2(0,0));
res += mat4(0.105870448052883,-0.112854182720184,-0.157959938049316,-0.315528154373169,-0.172610789537430,-0.114141188561916,0.079286605119705,-0.309844166040421,0.109522379934788,-0.000658002507407,0.182767033576965,0.210063725709915,-0.211606174707413,0.172734662890434,-0.429013073444366,0.283843874931335) * MODEL2_texOff(vec2(0,1));
res += mat4(0.024038922041655,0.133421942591667,-0.121713407337666,0.094875745475292,0.060786299407482,-0.015069340355694,-0.178097352385521,-0.045404143631458,-0.064084663987160,0.049133531749249,0.009657591581345,-0.036314968019724,-0.027245553210378,0.103779479861259,0.127541795372963,-0.088013842701912) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.091390535235405,-0.135310575366020,-0.317990452051163,-0.081104300916195,0.239540740847588,-0.060913439840078,-0.266614526510239,-0.426999479532242,0.001678184955381,0.061985779553652,0.095261357724667,0.207202091813087,0.024077346548438,0.162499830126762,-0.226139381527901,0.153888851404190) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.037351343780756,-0.218447014689445,-0.261128991842270,-0.089749760925770,0.065027371048927,0.113014228641987,-0.140247195959091,-0.335346758365631,-0.038516391068697,0.095632210373878,0.185321569442749,0.278170466423035,0.172629237174988,0.287355631589890,-0.052633646875620,0.024274112656713) * MODEL2_texOff(vec2(1,1));
res += mat4(0.108964882791042,-0.035272523760796,0.149346470832825,-0.079941913485527,-0.099505387246609,0.264513105154037,0.338898777961731,0.138637870550156,0.055470023304224,0.122289016842842,0.085711374878883,-0.032198119908571,0.077842615544796,-0.136642798781395,0.147371053695679,0.154993429780006) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.138389900326729,0.158124983310699,-0.231629580259323,0.101136624813080,0.015181794762611,0.044430840760469,0.075195536017418,0.181732088327408,0.147704839706421,0.017980955541134,0.023656794801354,0.095072425901890,0.098910547792912,0.001889706938528,0.105367876589298,0.291961491107941) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.036504246294498,-0.185321480035782,-0.100859098136425,0.053952243179083,-0.003898355644196,0.373636811971664,0.195218980312347,-0.042870603501797,0.076874919235706,0.196687445044518,0.000294490077067,-0.105523012578487,0.148147642612457,-0.024009848013520,0.233794614672661,0.025322271510959) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.041723761707544,-0.107899986207485,0.377827048301697,-0.060870803892612,-0.059263601899147,0.074227340519428,0.277869910001755,0.152689799666405,0.003950424492359,0.169182613492012,0.176536172628403,-0.061058066785336,0.107592456042767,0.224051788449287,-0.243314772844315,0.077653743326664) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.042672164738178,-0.163444712758064,0.344866007566452,-0.184388473629951,0.221554085612297,0.018787086009979,0.125870868563652,0.113624371588230,0.006788500584662,0.251242697238922,0.229756772518158,0.020969633013010,-0.315747946500778,-0.202608168125153,0.018668472766876,-0.166076615452766) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.035531949251890,-0.092962004244328,0.065062597393990,0.100056938827038,0.046370938420296,0.157520204782486,0.176019549369812,-0.248617231845856,0.005705777555704,0.027885258197784,0.180126398801804,0.149531602859497,0.048440098762512,-0.118029579520226,0.082080066204071,-0.340402513742447) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.063863374292850,0.059352848678827,0.191373899579048,-0.012610421516001,0.029268177226186,0.217985689640045,0.076774746179581,0.011203203350306,0.002881180029362,0.062241446226835,0.054947961121798,0.006266352254897,0.200479626655579,0.045011382550001,0.061608370393515,0.040804013609886) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.312580287456512,-0.056422572582960,-0.204043045639992,0.002839280758053,0.175527527928352,0.301723808050156,-0.052209705114365,0.149048954248428,-0.082400918006897,-0.099464923143387,0.093684569001198,0.064768575131893,0.093304567039013,0.029726516455412,-0.245317026972771,0.255955517292023) * MODEL3_texOff(vec2(1,0));
res += mat4(0.011922061443329,-0.154330298304558,0.039278872311115,0.128390938043594,0.049610666930676,0.267325609922409,0.057760413736105,-0.215637773275375,-0.040628608316183,-0.058379553258419,-0.011927858926356,0.077312014997005,0.065376490354538,0.076516970992088,-0.036121081560850,0.033905822783709) * MODEL3_texOff(vec2(1,1));
res += mat4(0.022533854469657,0.189976513385773,-0.082767538726330,0.034257683902979,0.049331746995449,-0.450791388750076,-0.084505282342434,0.010001499205828,0.063605315983295,0.081846565008163,0.462714195251465,-0.020659573376179,-0.065240606665611,0.061232492327690,0.220800340175629,0.160879626870155) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.084283635020256,0.095080047845840,0.121326558291912,-0.018439892679453,-0.076977811753750,-0.547548353672028,0.009378211572766,-0.017631465569139,0.089232191443443,0.057240687310696,0.078115373849869,-0.163905560970306,-0.218553617596626,-0.122799843549728,-0.206815451383591,-0.066274188458920) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.022669518366456,0.023372339084744,0.111318767070770,-1.126223325729370,0.023823548108339,-0.053628198802471,0.087545968592167,-0.323221802711487,0.028469717130065,-0.124426059424877,0.061972461640835,0.094247058033943,-0.206921800971031,-0.005701061803848,-0.270731240510941,-0.117132924497128) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.166535839438438,-0.057729624211788,0.045471105724573,0.035737648606300,0.165684401988983,-0.548975288867950,0.170474648475647,-0.031207585707307,-0.069317504763603,0.131571948528290,-0.218413814902306,-0.032561518251896,0.011289790272713,0.218939781188965,0.230470463633537,0.133180215954781) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.289189636707306,0.211609885096550,-0.147319391369820,0.138300359249115,0.246074885129929,-1.284684658050537,0.208924800157547,0.112651325762272,-0.679593503475189,0.145603343844414,0.007544441614300,-0.193763285875320,0.092229567468166,0.055937893688679,-0.230115890502930,0.057818274945021) * MODEL4_texOff(vec2(0,0));
res += mat4(0.043190412223339,0.039814304560423,-0.017575539648533,0.062847018241882,0.092764697968960,-0.242636427283287,0.020294301211834,-0.962087988853455,0.010924907401204,-0.181724920868874,-0.250690847635269,0.805904328823090,-0.006672721356153,-0.247001603245735,0.004340549930930,-0.297847330570221) * MODEL4_texOff(vec2(0,1));
res += mat4(0.003692895406857,0.148850664496422,0.047826904803514,0.038406640291214,0.095915757119656,-0.065679669380188,-0.134958043694496,-0.037978447973728,-0.024917446076870,-0.042450785636902,0.015792764723301,0.078167200088501,-0.000717378745321,0.123046554625034,-0.133556753396988,0.111700437963009) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.052690308541059,0.019675057381392,0.028120167553425,0.062575705349445,0.115148738026619,-0.236057400703430,-0.040567114949226,0.154525116086006,-0.262229889631271,-0.154151067137718,-0.156732648611069,0.267855793237686,-0.070981726050377,-0.070782251656055,-0.209470406174660,-0.093959480524063) * MODEL4_texOff(vec2(1,0));
res += mat4(0.047515787184238,0.154357001185417,-0.123022988438606,0.156845346093178,0.019525445997715,-0.069961883127689,0.051861729472876,-0.377816647291183,0.024958642199636,0.053229939192533,-0.091308638453484,0.282112807035446,-0.187508657574654,-0.039018057286739,-0.005309768021107,0.188127607107162) * MODEL4_texOff(vec2(1,1));
res += mat4(0.083932101726532,0.076385378837585,-0.005039683077484,0.001829645130783,0.017191911116242,-0.049200631678104,0.118983015418053,0.078280650079250,0.003566666506231,0.235381260514259,-0.042907357215881,0.109152898192406,-0.049532402306795,0.137797713279724,-0.106108494102955,0.157584905624390) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.027994384989142,0.044468127191067,-0.107987679541111,-0.122107259929180,-0.042740225791931,-0.226318478584290,0.177380055189133,0.221346765756607,-0.228948980569839,0.199567124247551,0.331215292215347,0.055412374436855,-0.107942268252373,0.155885115265846,0.233849585056305,0.176150634884834) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.018883673474193,0.098595574498177,-0.007953280583024,0.063337415456772,-0.061141114681959,-0.105508096516132,-0.121262863278389,-0.097665049135685,0.053565487265587,-0.070363841950893,0.213080853223801,0.353691101074219,-0.025143351405859,0.004171666689217,0.048569858074188,0.313786983489990) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.015562048181891,0.018826186656952,0.102857604622841,0.040934320539236,-0.131001636385918,0.126575887203217,0.088062644004822,-0.050664097070694,-0.089360892772675,0.047623921185732,-0.156122580170631,0.077283762395382,-0.180348575115204,0.131071865558624,0.296108692884445,0.215974852442741) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.573201298713684,-0.383788019418716,0.130778506398201,-0.029380092397332,0.115664944052696,-0.072387330234051,0.305819749832153,0.194060012698174,-0.184462726116180,-0.100379630923271,-0.090358823537827,-0.270472615957260,0.138399973511696,-0.165507659316063,-0.127568379044533,0.157862886786461) * MODEL5_texOff(vec2(0,0));
res += mat4(0.008118894882500,0.047499533742666,-0.099125996232033,-0.285750627517700,-0.160302355885506,0.061810325831175,-0.135180115699768,0.145847991108894,-0.148684039711952,0.046673547476530,0.002680224599317,-0.031352572143078,0.022329097613692,-0.049462623894215,-0.025885563343763,-0.339671760797501) * MODEL5_texOff(vec2(0,1));
res += mat4(0.182690411806107,-0.034268029034138,-0.010752022266388,-0.068258702754974,-0.041119314730167,0.059462767094374,0.128368332982063,0.147083818912506,-0.097781486809254,0.086464822292328,0.024978879839182,-0.045152269303799,-0.064566269516945,0.171139717102051,-0.040202073752880,0.116907566785812) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.175335928797722,0.053111173212528,-0.371543884277344,-0.159572854638100,-0.317160218954086,0.072309069335461,-0.124057643115520,-0.010183768346906,-0.087595865130424,-0.131554841995239,0.041530761867762,-0.013102050870657,-0.741164743900299,-0.234501779079437,0.005399360321462,0.058096699416637) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.025796784088016,0.385254502296448,-0.051807135343552,-0.374704241752625,0.145460963249207,0.180357515811920,-0.071264788508415,-0.158224582672119,-0.190723538398743,0.091337747871876,-0.202767729759216,-0.012976432219148,0.075234882533550,-0.033375065773726,-0.298722952604294,0.020416146144271) * MODEL5_texOff(vec2(1,1));
res += mat4(0.025974871590734,0.075467199087143,0.060554113239050,0.011668343096972,-0.008208894170821,-0.106535226106644,0.215175107121468,-0.080855205655098,0.052620179951191,-0.260163635015488,0.135954901576042,0.132183909416199,-0.003481728257611,0.212546408176422,0.271319031715393,-0.140672728419304) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.057186942547560,-0.294877648353577,-0.132210493087769,0.017207030206919,0.023678069934249,0.258327811956406,0.171888306736946,-0.017545148730278,-0.046882443130016,-0.190261125564575,-0.100641898810863,0.155533552169800,-0.126444071531296,-0.083905823528767,0.340206414461136,-0.189768791198730) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.034783482551575,-0.064194232225418,-0.182981744408607,-0.250218272209167,0.019124561920762,0.035775680094957,0.162322655320168,-0.022215094417334,0.053942188620567,0.117606185376644,-0.037489384412766,0.292523622512817,0.054098743945360,0.110080100595951,0.190345928072929,-0.484478145837784) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.000902158732060,0.112458601593971,0.046903748065233,-0.026349101215601,0.038803230971098,0.028253307566047,-0.129135787487030,-0.113885484635830,-0.039296656847000,-0.087358996272087,-0.106156855821609,0.275571912527084,-0.025922056287527,-0.143592327833176,-0.004221512936056,0.057083748281002) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.168487071990967,0.156123980879784,-0.248739108443260,0.282525807619095,-0.362384319305420,-0.175778597593307,0.290678709745407,-0.500114083290100,-0.184789553284645,-0.180590659379959,-0.272115558385849,-0.016283659264445,-0.613608479499817,0.006486984435469,-0.284919261932373,-0.077169656753540) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.030093276873231,0.070113830268383,-0.237873762845993,-0.862255394458771,0.270404309034348,0.133806079626083,-0.083070978522301,-0.462669819593430,0.001175577868707,-0.012544462457299,-0.046341996639967,0.370013773441315,0.064147986471653,-0.167309254407883,0.008769364096224,0.289701014757156) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.012992260977626,-0.055468861013651,0.015350535511971,0.005461576394737,0.036822129040956,-0.065360091626644,0.110266365110874,0.025390909984708,0.002846008399501,0.252803593873978,-0.195637941360474,0.186264082789421,-0.195033729076385,0.137748077511787,0.016294589266181,-0.085626490414143) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.036187164485455,0.007984667085111,-0.000237055122852,-0.000280484062387,-0.242269709706306,0.011473891325295,0.097412288188934,-0.042364720255136,0.103887528181076,0.028844431042671,-0.146847769618034,-0.008726936765015,-0.320628494024277,0.068011239171028,-0.359669983386993,-0.118936143815517) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.017153413966298,-0.121418155729771,0.036139518022537,-0.250997632741928,0.123033195734024,-0.247528165578842,-0.071499221026897,-0.175592750310898,0.032347861677408,0.118223562836647,-0.084865577518940,0.464575767517090,0.102658338844776,-0.133878707885742,-0.072967968881130,0.037522349506617) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.516228199005127,0.044316079467535,0.164417907595634,-0.054709300398827) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 2_6

vec4 hook()
{
vec4 res = vec4(-0.141364261507988,0.121139772236347,0.316805690526962,0.256575316190720);
res += mat4(-0.068480469286442,-0.210121273994446,-0.114080086350441,0.072756513953209,-0.203115358948708,0.295162320137024,0.131270349025726,0.042041335254908,0.047768343240023,0.016913911327720,0.006728830747306,0.200489297509193,-0.026469457894564,-0.110918708145618,-0.124810941517353,-0.017016805708408) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.159139588475227,-0.378913760185242,-0.178019538521767,0.086849547922611,-0.391632229089737,0.320338934659958,0.306625843048096,-0.009362862445414,-0.163715884089470,0.080998122692108,0.035451505333185,0.075629301369190,0.074624828994274,-0.031058806926012,-0.587819576263428,-0.003116666339338) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.145818114280701,-0.250252217054367,0.216094106435776,0.049870040267706,-0.224112525582314,0.185492321848869,0.122940070927143,-0.029503969475627,-0.199659079313278,0.130005970597267,0.149422928690910,-0.044364463537931,-0.011338219977915,0.037188854068518,-0.012958174571395,-0.022940902039409) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.239967495203018,-0.200389876961708,-0.152363941073418,-0.013488387688994,-0.119149498641491,0.429757267236710,0.338752716779709,0.120554536581039,-0.194717943668365,0.206744953989983,0.039878305047750,0.378487288951874,-0.009037232026458,-0.069211095571518,-0.558540523052216,-0.100006222724915) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.258412748575211,-0.728039622306824,-0.475361496210098,-0.030457530170679,0.233897909522057,0.086958356201649,0.109521247446537,-0.007342273369431,0.456811070442200,-0.146531000733376,0.128362149000168,-0.253850281238556,-0.108964338898659,-0.568030416965485,-1.288493514060974,-0.053693588823080) * MODEL1_texOff(vec2(0,0));
res += mat4(0.316613286733627,-0.314207315444946,0.107867479324341,-0.036145225167274,-0.128215014934540,-0.000049325997679,-0.038833964616060,-0.042351718991995,0.116548731923103,-0.023187197744846,-0.048226580023766,0.074173599481583,0.234977900981903,-0.143747091293335,-0.498264670372009,0.043746620416641) * MODEL1_texOff(vec2(0,1));
res += mat4(0.007620701100677,-0.825577199459076,-0.120727755129337,0.077143698930740,-0.017253885045648,0.263348042964935,-0.095204956829548,-0.060108993202448,-0.039996448904276,0.031315162777901,-0.280610233545303,0.079716950654984,-0.010501700453460,-0.081479251384735,-0.658597290515900,0.065360739827156) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.036495521664619,-0.759027898311615,-0.179551631212234,-0.016677973791957,-0.412363559007645,0.221856832504272,-0.080093361437321,-0.085198715329170,-0.104353971779346,0.124092467129230,-0.145897924900055,0.028982048854232,0.093680538237095,-0.192290559411049,-0.608859956264496,-0.055824108421803) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.044977121055126,-0.712081730365753,-0.084377586841583,-0.026551017537713,-0.165824636816978,0.294572114944458,0.151048794388771,-0.030026460066438,0.100776448845863,-0.042389087378979,-0.036400888115168,0.065508432686329,0.006092371419072,0.181032627820969,-0.117630429565907,0.105877146124840) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.108145162463188,0.287170916795731,0.041534118354321,-0.007224744185805,0.095008365809917,-0.248582407832146,-0.476305067539215,-0.039046861231327,0.064222052693367,0.136742755770683,-0.222037196159363,-0.078895807266235,-0.042712923139334,0.051317185163498,0.165644571185112,-0.132602274417877) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.146867439150810,-0.000940874509979,0.027880994603038,-0.108899272978306,0.158306822180748,0.589477658271790,-0.286766856908798,-0.044471770524979,0.298641502857208,0.175138875842094,-0.017292376607656,-0.168641895055771,0.083875291049480,0.044576991349459,0.218343481421471,-0.076008826494217) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.018986929208040,0.176116615533829,0.057620279490948,-0.084444209933281,-0.272945344448090,-0.086669459939003,0.246881917119026,-0.150454625487328,0.456335514783859,-0.061570443212986,-0.021857116371393,-0.159814238548279,0.127168551087379,0.001290191896260,0.212632343173027,0.066465064883232) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.044761370867491,-0.035764753818512,0.280419558286667,-0.150926679372787,0.122843481600285,-0.176743716001511,-0.648328125476837,-0.047866579145193,0.021967982873321,0.075108639895916,-0.340082556009293,0.039314962923527,0.017558200284839,-0.178632333874702,0.195728868246078,-0.085538871586323) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.002581768436357,-0.111979864537716,0.068050660192966,-0.147996321320534,-0.241168633103371,-0.107400186359882,-0.258864969015121,0.133761554956436,0.119636721909046,-0.111629374325275,-0.579285562038422,-0.012255740351975,-0.492357224225998,0.024946061894298,0.117225550115108,-0.123418420553207) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.195261836051941,0.217277631163597,0.284273505210876,-0.131893590092659,-0.058987993746996,0.031704872846603,-0.105431206524372,-0.023006105795503,0.014026856981218,-0.004518998321146,0.078106336295605,-0.098716326057911,-0.089192882180214,0.164606943726540,0.188969954848289,0.016622524708509) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.038173001259565,0.111155703663826,-0.118541084229946,-0.146352291107178,0.012450600974262,-0.273788005113602,0.001888612518087,-0.171800985932350,0.124040558934212,0.072453290224075,0.072065241634846,-0.011736673302948,-0.024212308228016,-0.083318449556828,0.247296288609505,0.007535044569522) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.240034446120262,0.013356090523303,0.198787763714790,-0.223125502467155,-0.074682258069515,-0.031178351491690,-0.108742147684097,-0.088426433503628,0.093038134276867,-0.544903039932251,0.052857320755720,0.017914183437824,0.159730747342110,0.302951961755753,0.299092441797256,0.032318733632565) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.010445457883179,0.377931356430054,0.256270587444305,-0.079556964337826,-0.115828104317188,0.054753091186285,0.020422507077456,-0.047404661774635,0.208139896392822,0.008326468057930,-0.418137580156326,0.088747948408127,0.029872477054596,-0.173775747418404,0.125859245657921,-0.090053446590900) * MODEL2_texOff(vec2(1,1));
res += mat4(0.010795121081173,0.122055619955063,-0.110045887529850,-0.057135399430990,0.041038788855076,-0.229615390300751,0.217308074235916,0.034890212118626,-0.018558748066425,-0.014866173267365,0.145951688289642,-0.012095360085368,-0.028947494924068,-0.145690828561783,0.187719359993935,0.064170479774475) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.093532219529152,0.185109853744507,0.108796842396259,-0.069856546819210,0.007603850215673,-0.244986757636070,0.214620992541313,-0.020000355318189,0.068201169371605,0.106872528791428,0.158872559666634,-0.076025411486626,0.060643211007118,0.077962577342987,-0.159818470478058,-0.275889635086060) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.093659132719040,0.264944106340408,0.076639413833618,0.000959611323196,-0.030566895380616,-0.184182390570641,0.332183271646500,-0.054442666471004,0.082882888615131,0.172545298933983,-0.051812350749969,-0.075521759688854,0.088166341185570,-0.065773718059063,0.052151575684547,-0.078263789415359) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.257852941751480,0.139220267534256,0.248309105634689,0.003869087202474,0.075799822807312,-0.107756160199642,-0.036627694964409,-0.076992884278297,0.060778994113207,0.038218256086111,0.092266574501991,-0.077603869140148,0.094873435795307,0.112322352826595,-0.017458241432905,0.181574985384941) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.058900978416204,0.058461502194405,-0.219139844179153,0.111134029924870,0.260615736246109,-0.582969546318054,-0.435232132673264,-0.109521694481373,-0.155475899577141,0.091098845005035,0.180868089199066,0.031122162938118,-0.099745087325573,0.177173003554344,0.089635409414768,0.625042021274567) * MODEL3_texOff(vec2(0,0));
res += mat4(0.027566002681851,0.107407040894032,-0.224859237670898,-0.016482941806316,0.211111500859261,-0.097205698490143,-0.202950641512871,-0.072685651481152,-0.196174979209900,0.165376096963882,0.043219570070505,-0.022730726748705,-0.080651670694351,0.015441189520061,-0.048594210296869,-0.035578943789005) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.060080606490374,0.290064930915833,0.353601813316345,-0.092059455811977,-0.036972459405661,-0.369311064481735,0.196436092257500,-0.051583997905254,0.050739604979753,0.079332478344440,0.067306809127331,-0.021582482382655,-0.072031028568745,-0.301815271377563,-0.010030186735094,0.010922613553703) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.077663145959377,-0.088434144854546,0.132235795259476,-0.275498062372208,-0.056852404028177,-0.302698612213135,0.001998851541430,-0.113596498966217,-0.009309682995081,0.050250746309757,-0.137586221098900,-0.097080886363983,-0.216877937316895,-0.087513960897923,0.050724755972624,-0.021526094526052) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.168226048350334,-0.319832682609558,-0.436810016632080,0.020202364772558,0.216129213571548,-0.174596637487411,0.106254175305367,-0.018485926091671,-0.085384815931320,0.290819078683853,0.140248998999596,-0.033237360417843,0.196026682853699,-0.063799947500229,0.104289852082729,-0.001134362420999) * MODEL3_texOff(vec2(1,1));
res += mat4(0.038466013967991,0.203430533409119,-0.213556692004204,0.016579443588853,-0.034696944057941,-0.014267627149820,-0.143865287303925,0.007130084559321,0.093202963471413,-0.110690012574196,0.155417963862419,-0.036072492599487,0.124522909522057,-0.032280024141073,-0.076071351766586,-0.067009367048740) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.158638790249825,0.122129134833813,-0.384708434343338,0.285109430551529,0.037376552820206,0.023332938551903,-0.368945509195328,-0.113897427916527,0.157914191484451,0.183070138096809,-0.292678147554398,-0.016472952440381,-0.132082477211952,0.049120102077723,0.115948937833309,0.048843029886484) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.117198668420315,0.058848835527897,-0.200530365109444,-0.053458988666534,-0.135118305683136,-0.075419701635838,-0.045598059892654,-0.004727300256491,0.015449964441359,-0.004443580750376,-0.059317752718925,0.034517221152782,-0.185933530330658,0.380631715059280,0.267796993255615,0.064999043941498) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.071496173739433,0.155389875173569,0.155804708600044,0.034506779164076,-0.004509327001870,0.040066011250019,-0.641574919223785,-0.214125052094460,-0.137349143624306,-0.186538830399513,0.098379194736481,0.113015145063400,0.176046267151833,0.012210543267429,-0.208325892686844,-0.128738388419151) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.052423987537622,-0.505177438259125,-0.016724383458495,-0.157106429338455,-0.058341056108475,-0.000276477192529,-0.805852890014648,-0.114033162593842,-0.011749545112252,-0.112299636006355,0.007359855342656,0.298396557569504,0.288809597492218,0.433975577354431,0.106140807271004,-0.179530084133148) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.125152066349983,-0.042162451893091,-0.061742253601551,-0.179705664515495,0.111258819699287,-0.010857469402254,-0.066918149590492,-0.106374643743038,-0.352678239345551,-0.109543405473232,-0.200716674327850,0.036797806620598,0.232272475957870,0.173376232385635,0.225847303867340,-0.057542163878679) * MODEL4_texOff(vec2(0,1));
res += mat4(0.093936495482922,0.163741409778595,0.062652349472046,-0.042439728975296,-0.128265291452408,0.280151069164276,0.072759255766869,-0.021008033305407,-0.175771892070770,-0.063325025141239,0.085600093007088,0.079722978174686,-0.170670166611671,0.010883833281696,-0.054842080920935,-0.095422394573689) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.133272409439087,-0.034928008913994,0.062103223055601,-0.051873609423637,-0.173538938164711,-0.107022047042847,0.156405404210091,-0.039568390697241,-0.229741394519806,-0.157615840435028,0.200489133596420,0.083366394042969,-0.118170209228992,0.044061645865440,0.076107397675514,0.044736564159393) * MODEL4_texOff(vec2(1,0));
res += mat4(0.020898167043924,-0.091823175549507,0.084805622696877,-0.117374882102013,-0.047433946281672,0.111820712685585,0.067431084811687,-0.045691762119532,0.032644271850586,0.041027456521988,0.057140123099089,-0.041260633617640,-0.036239739507437,0.139278084039688,0.034453514963388,0.163287907838821) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.078518182039261,0.166468605399132,0.167614325881004,0.004815689288080,-0.024298589676619,-0.085747286677361,0.106537975370884,-0.046770423650742,0.014266255311668,0.205745249986649,0.106661841273308,0.090665608644485,0.076055079698563,-0.105402283370495,0.168165504932404,0.125431373715401) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.155401960015297,0.060248985886574,-0.061107013374567,-0.056695222854614,0.131901994347572,0.315447479486465,-0.119596906006336,-0.055287756025791,-0.089929364621639,-0.159923389554024,0.292467445135117,0.017627120018005,0.085090771317482,-0.043752197176218,0.159273505210876,0.076971590518951) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.015280193649232,-0.024392088875175,0.095811180770397,-0.005107606295496,0.075239755213261,0.084293104708195,0.128521040081978,-0.273833513259888,-0.201059505343437,0.106017470359802,0.080055832862854,0.154462039470673,-0.217416822910309,-0.123894445598125,0.025821976363659,0.078282669186592) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.151549220085144,-0.043886546045542,-0.021017633378506,-0.100907333195210,0.003234734293073,0.034382723271847,0.124031923711300,-0.053023055195808,0.173136293888092,0.009747017174959,-0.199419796466827,0.176842346787453,0.133185386657715,0.046677879989147,0.245876848697662,0.111841730773449) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.303523659706116,0.100951671600342,0.034213226288557,0.027927702292800,0.112367235124111,-0.075926743447781,0.124824643135071,-0.927631974220276,-0.026424841955304,-0.061271186918020,0.151197597384453,-0.565312683582306,0.166086137294769,0.022536920383573,0.007353407330811,0.222675144672394) * MODEL5_texOff(vec2(0,0));
res += mat4(0.095945194363594,0.174016237258911,0.096947282552719,0.017589496448636,-0.032209523022175,0.118538640439510,0.197393894195557,0.253984957933426,0.140108495950699,-0.090903267264366,-0.036416996270418,0.108184672892094,0.072005316615105,0.271854519844055,-0.018154893070459,0.186797216534615) * MODEL5_texOff(vec2(0,1));
res += mat4(0.023447785526514,-0.078136414289474,0.070001862943172,-0.038522385060787,-0.027348114177585,0.087282024323940,-0.039519205689430,-0.040387392044067,-0.256968200206757,-0.117584884166718,-0.079235881567001,0.148993372917175,-0.024661993607879,0.176369443535805,-0.014955977909267,0.243710264563560) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.193391367793083,0.050183486193419,-0.131436884403229,0.153512746095657,0.040814809501171,0.184087067842484,0.019514638930559,-0.165497377514839,0.142716258764267,-0.012568633072078,-0.121841780841351,0.092726945877075,-0.333104759454727,-0.486451029777527,-0.133412703871727,0.107645682990551) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.238262370228767,-0.195702090859413,0.191187411546707,0.123531371355057,0.252830028533936,-0.143943473696709,-0.117119535803795,-0.191769853234291,0.213474050164223,0.132928535342216,-0.028686415404081,0.145489543676376,-0.302761912345886,-0.084476195275784,-0.030962189659476,0.133412212133408) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.055905669927597,-0.068868175148964,-0.055426042526960,0.039655707776546,-0.060475662350655,-0.087707392871380,0.021865645423532,-0.036480259150267,0.176235347986221,0.215768992900848,-0.083143979310989,-0.003761098720133,-0.094026461243629,0.147865384817123,0.057754009962082,-0.074519656598568) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.116146683692932,-0.221240431070328,0.016081569716334,-0.045503068715334,0.177490830421448,-0.112100213766098,0.055029340088367,-0.066267557442188,0.242042765021324,0.262670576572418,0.110433280467987,0.020769182592630,0.062571138143539,-0.038023006170988,-0.301368832588196,0.145939543843269) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.287329167127609,0.067001745104790,-0.016983209177852,0.056368712335825,0.148243471980095,0.032409708946943,-0.115710295736790,-0.100724026560783,0.211054444313049,0.063455320894718,-0.045532461255789,0.075469709932804,-0.275288909673691,-0.051816366612911,0.107596449553967,0.031968776136637) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.015873905271292,-0.038801170885563,-0.010696720331907,0.024267068132758,0.095566011965275,0.019840128719807,-0.250513523817062,0.017324842512608,-0.020874544978142,-0.047846216708422,0.025738099589944,-0.086077980697155,-0.151696026325226,-0.127879053354263,0.174341320991516,0.051261197775602) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.129425689578056,-0.129851028323174,0.010256169363856,-0.048063240945339,0.053672321140766,0.134525656700134,-0.154048830270767,0.131985679268837,-0.408446431159973,0.250915139913559,-0.037675555795431,0.094138853251934,0.277940511703491,-0.234548017382622,-0.381559848785400,0.038957215845585) * MODEL6_texOff(vec2(0,0));
res += mat4(0.330010384321213,0.068943917751312,-0.007311394903809,0.075174994766712,-0.267221122980118,-0.056178424507380,0.028243048116565,-0.104024000465870,-0.454267352819443,-0.023558931425214,0.103981971740723,0.163971155881882,-0.363779425621033,0.359105259180069,-0.155898123979568,0.113016664981842) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.044557284563780,-0.145377546548843,0.073492527008057,0.049714170396328,0.156753167510033,0.045622188597918,0.021846298128366,0.041368655860424,0.117502413690090,-0.123566545546055,-0.148386970162392,-0.125830411911011,0.093852207064629,-0.103313311934471,-0.135135620832443,-0.065146572887897) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.015959452837706,-0.157526999711990,0.013401064090431,-0.039641942828894,-0.104492895305157,-0.172256916761398,-0.056924965232611,0.064492776989937,-0.077787086367607,0.095043033361435,-0.270009309053421,0.077452674508095,0.185069292783737,-0.244411870837212,-0.079194501042366,0.092207364737988) * MODEL6_texOff(vec2(1,0));
res += mat4(0.021360885351896,-0.083274461328983,-0.058572795242071,0.039916913956404,-0.129005908966064,0.062284432351589,-0.135912582278252,-0.021381765604019,0.009473551996052,0.151081755757332,0.149752989411354,0.050985723733902,0.187148466706276,0.044951144605875,-0.028995078057051,-0.014164426364005) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.048957470804453,0.026501670479774,-0.032753705978394,0.944009065628052) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL1
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 3_1

vec4 hook()
{
vec4 res = vec4(0.007864764891565,-0.001605411875062,0.007614311762154,-0.021859621629119);
res += mat4(-0.104538470506668,-0.296458035707474,0.135526344180107,0.282320946455002,-0.081423602998257,-0.161623746156693,0.204196318984032,0.059742186218500,0.041249208152294,0.194960385560989,0.058441706001759,-0.028275005519390,-0.034366115927696,-0.015455050393939,-0.068853184580803,-0.025299042463303) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.031082866713405,-0.313574194908142,0.023638494312763,0.045389059931040,-0.171886071562767,-0.415535241365433,0.264078348875046,-0.037399426102638,0.139093354344368,0.342779666185379,0.066190041601658,0.013605749234557,-0.113097973167896,0.383237898349762,-0.202557951211929,-0.020959051325917) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.067751623690128,-0.122752912342548,0.034190274775028,-0.110489264130592,0.110799275338650,-0.339714467525482,0.071699783205986,0.103993654251099,0.410550951957703,-0.150201782584190,0.282568246126175,-0.022409422323108,0.187944069504738,0.118455976247787,-0.245616495609283,-0.159208312630653) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.050574582070112,-0.082933522760868,-0.063128180801868,0.220513895153999,0.209902822971344,-0.045630596578121,0.100671045482159,0.025064783170819,0.426111489534378,0.160925790667534,0.137364879250526,-0.232292130589485,0.205679818987846,0.050187531858683,-0.028691200539470,0.000385103048757) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.072083584964275,0.076142527163029,-0.458574354648590,-0.258874624967575,-0.317390859127045,-0.124074809253216,-0.259638696908951,-0.153195038437843,0.147011846303940,0.114410027861595,0.108058772981167,0.226795196533203,0.058199264109135,0.119971685111523,0.261846929788589,0.172347515821457) * MODEL7_texOff(vec2(0,0));
res += mat4(0.048141147941351,-0.023361202329397,-0.012288209982216,0.061759531497955,0.014289968647063,-0.108267456293106,0.057158004492521,0.154134050011635,-0.121596552431583,-0.349010378122330,0.014018907211721,0.128816127777100,-0.021578880026937,-0.187656775116920,0.061027143150568,-0.044471036642790) * MODEL7_texOff(vec2(0,1));
res += mat4(0.254018515348434,-0.043408453464508,0.061608109623194,-0.027030410245061,0.009632155299187,-0.395372331142426,0.004864512011409,-0.110835485160351,-0.021175716072321,0.084023669362068,0.115064918994904,0.006591123063117,0.015393894165754,-0.139065325260162,0.112293712794781,0.052440457046032) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.247014090418816,0.047223556786776,-0.001962343230844,0.044591054320335,0.204523220658302,-0.195650666952133,0.056610368192196,0.007998523302376,0.108852267265320,0.029803570359945,0.071793667972088,-0.005579898133874,-0.222823768854141,-0.625544071197510,-0.195767611265182,-0.063694804906845) * MODEL7_texOff(vec2(1,0));
res += mat4(0.068639546632767,-0.124372735619545,-0.100946553051472,-0.032551802694798,0.120806120336056,-0.234458997845650,-0.108172208070755,-0.061967607587576,-0.037499353289604,0.270221233367920,-0.071604914963245,-0.019217247143388,0.011474055238068,0.022342927753925,-0.029508667066693,0.082606837153435) * MODEL7_texOff(vec2(1,1));
res += mat4(0.008266752585769,-0.010916571132839,0.027862846851349,-0.048214681446552,0.056771866977215,0.152270674705505,-0.031721923500299,-0.111249841749668,-0.050312906503677,-0.008324271067977,-0.033734451979399,-0.121274314820766,-0.023515092208982,0.047491624951363,-0.015501190908253,0.003496319754049) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.177941069006920,-0.106072783470154,0.117083266377449,0.002372354036197,0.051026675850153,-0.051355890929699,0.188837438821793,-0.272895932197571,0.020251948386431,0.023532431572676,0.070440560579300,0.047943886369467,0.172062531113625,-0.191052660346031,0.141374930739403,-0.005753180943429) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.038754668086767,0.178692117333412,0.067221663892269,0.062875606119633,-0.077872529625893,0.063379086554050,-0.069289989769459,0.055095493793488,0.014188362285495,0.034340411424637,0.035936377942562,-0.016488263383508,-0.002739794086665,-0.118948601186275,-0.031940985471010,-0.063844256103039) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.104133844375610,-0.251879364252090,0.149266049265862,0.143367141485214,-0.067151211202145,0.256846427917480,0.003128541866317,-0.241506919264793,0.261390477418900,0.004202121403068,0.010188299231231,-0.059953138232231,-0.108673162758350,0.173708841204643,-0.076045468449593,0.035463064908981) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.584042787551880,-0.520477414131165,0.196801960468292,0.006930973380804,-0.461725831031799,-0.197691857814789,0.008312503807247,-0.361540734767914,0.073114469647408,0.186226144433022,0.250532925128937,0.236503511667252,0.091930523514748,0.036541681736708,0.063628882169724,0.053775507956743) * MODEL8_texOff(vec2(0,0));
res += mat4(0.216415002942085,0.006591403391212,-0.087436266243458,-0.170352175831795,0.247698754072189,-0.124509669840336,0.175276353955269,0.496510952711105,-0.075677648186684,0.096717789769173,-0.047823019325733,-0.006273575592786,-0.207393348217010,0.195683911442757,-0.117899924516678,0.060213804244995) * MODEL8_texOff(vec2(0,1));
res += mat4(0.055107124149799,0.030681634321809,-0.074202112853527,-0.088814243674278,-0.054932165890932,-0.074231550097466,0.028251908719540,-0.093701474368572,-0.031232135370374,-0.201241806149483,-0.078648366034031,0.125929176807404,0.013918287120759,-0.023700064048171,0.042408071458340,-0.105719797313213) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.213321030139923,0.179047688841820,-0.528087258338928,0.079112917184830,0.079950340092182,-0.093580760061741,-0.035946071147919,-0.239094227552414,0.259270846843719,-0.118355669081211,0.397140800952911,0.055609848350286,-0.218980029225349,0.044568441808224,-0.186309710144997,-0.016587063670158) * MODEL8_texOff(vec2(1,0));
res += mat4(0.160807505249977,-0.020546728745103,0.038481220602989,0.089579120278358,0.083074100315571,-0.112351290881634,0.084321938455105,0.151308089494705,-0.144536614418030,0.041901461780071,0.125782951712608,-0.095813423395157,0.028064761310816,-0.026154778897762,0.097020447254181,0.168322488665581) * MODEL8_texOff(vec2(1,1));
res += mat4(0.047921553254128,-0.281449854373932,0.170938447117805,0.102145440876484,0.103472486138344,0.285748571157455,0.129850149154663,0.311649948358536,0.164874777197838,0.047192316502333,0.039151910692453,0.054731409996748,0.140395730733871,0.081284731626511,-0.141641378402710,-0.098301686346531) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.115116879343987,0.155702829360962,0.031846433877945,-0.082108959555626,0.050828967243433,-0.405010193586349,0.108399987220764,0.060268290340900,0.019565626978874,0.133181571960449,0.014937727712095,-0.047495417296886,0.116849206387997,-0.041265495121479,-0.044043280184269,0.183795735239983) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.132684573531151,-0.199662193655968,0.073201887309551,0.128013595938683,-0.065044716000557,-0.239373520016670,-0.125470429658890,-0.112011365592480,0.129246100783348,-0.277411520481110,0.172005921602249,0.130563125014305,0.041644532233477,-0.206390693783760,0.128799155354500,0.037327848374844) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.245146766304970,-0.116873510181904,-0.037040613591671,0.367578357458115,-0.609586179256439,-0.535687267780304,0.088010944426060,0.571748614311218,-0.184481218457222,-0.149237230420113,0.160422936081886,0.361353516578674,-0.193525671958923,-0.155615046620369,-0.209481924772263,0.384443283081055) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.172257125377655,-0.124437548220158,0.121938608586788,-0.377579361200333,-0.140093609690666,-0.271335482597351,-0.429423332214355,-0.402759045362473,-0.366525650024414,-0.156922593712807,-0.274251937866211,-0.262138217687607,0.206462681293488,-0.183053031563759,-0.206098794937134,-0.008282258175313) * MODEL9_texOff(vec2(0,0));
res += mat4(0.244056865572929,-0.168039172887802,0.172110408544540,0.114192321896553,-0.143032759428024,0.065491050481796,-0.022723812609911,-0.119542799890041,-0.022811401635408,0.182254299521446,0.109176687896252,0.073749944567680,0.090485416352749,0.012529349885881,-0.012798380106688,-0.269404828548431) * MODEL9_texOff(vec2(0,1));
res += mat4(0.109603591263294,-0.279819369316101,0.035876687616110,0.045773018151522,-0.055263485759497,0.085659824311733,-0.156348779797554,0.303902328014374,-0.206589996814728,0.090249672532082,-0.021575884893537,0.145325303077698,-0.081392608582973,-0.061248142272234,-0.065088622272015,-0.096842803061008) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.110903456807137,0.129773467779160,-0.085656873881817,0.018484655767679,-0.363919168710709,0.018102448433638,-0.273094266653061,0.200224608182907,0.145969450473785,-0.083614140748978,-0.198554530739784,-0.021070851013064,0.220345526933670,-0.091394007205963,0.052916333079338,-0.099802486598492) * MODEL9_texOff(vec2(1,0));
res += mat4(0.001321740797721,-0.028372868895531,0.187889248132706,-0.011113020591438,0.140715137124062,-0.006398310884833,-0.145175993442535,-0.113389655947685,-0.015218595974147,-0.131139859557152,0.018066683784127,-0.107066534459591,-0.075697474181652,-0.284018307924271,-0.451766818761826,-0.337814569473267) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.015483206138015,0.004189387895167,-0.066480651497841,0.096100077033043,-0.254343301057816,0.009861327707767,-0.225640729069710,-0.087185591459274,0.032848790287971,-0.087877184152603,0.187153354287148,0.081912726163864,-0.121757999062538,-0.268993645906448,0.091530688107014,0.055145211517811) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.026831962168217,0.201818123459816,-0.200687617063522,-0.101610295474529,0.321966081857681,-0.137583777308464,-0.035054307430983,0.048357959836721,-0.144257187843323,-0.172269567847252,0.075379468500614,0.054788984358311,-0.138588130474091,-0.025108451023698,-0.057659972459078,-0.151112020015717) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.060965288430452,0.419495791196823,-0.075574889779091,-0.026281660422683,-0.107104294002056,-0.073592625558376,0.050463140010834,-0.042145110666752,0.071287564933300,-0.056148223578930,-0.020579017698765,-0.112315334379673,0.036390498280525,0.022533861920238,-0.037045508623123,-0.027966821566224) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.000581820495427,0.077765733003616,0.086356341838837,0.340186178684235,-0.184179946780205,-0.230957403779030,-0.004484108183533,0.138517126441002,-0.094178892672062,-0.014341686852276,0.186021238565445,0.025675240904093,-0.034186474978924,0.233792752027512,0.071585848927498,-0.217251613736153) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.056075986474752,0.077528074383736,-0.031654633581638,-0.080521963536739,0.281468093395233,0.292037487030029,0.271274358034134,-0.202724605798721,-0.315536439418793,-0.251045048236847,-0.116205543279648,0.188387855887413,-0.027963018044829,-0.436078429222107,0.206569865345955,0.213638916611671) * MODEL10_texOff(vec2(0,0));
res += mat4(0.167571172118187,0.020320598036051,0.033610720187426,-0.006858870852739,-0.047245975583792,0.305792212486267,0.067954257130623,-0.084528893232346,-0.102012060582638,-0.200562149286270,0.038170922547579,-0.287422806024551,-0.104575537145138,0.022088423371315,0.045931655913591,-0.087003529071808) * MODEL10_texOff(vec2(0,1));
res += mat4(0.061483930796385,0.368723630905151,0.185958594083786,0.122147649526596,-0.368155807256699,0.254509538412094,0.019209476187825,-0.132993176579475,0.119098708033562,-0.200482636690140,0.224226325750351,0.017678527161479,0.280242472887039,0.156352430582047,0.113039195537567,-0.159660935401917) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.003291491651908,-0.038051918148994,0.046675819903612,0.124577753245831,-0.088354557752609,0.334230422973633,-0.244289338588715,0.037315469235182,0.109388396143913,-0.333594083786011,-0.247906163334846,-0.001972218044102,0.002728515770286,0.283819526433945,-0.121394664049149,0.020190203562379) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.003183561144397,-0.135319739580154,-0.087848879396915,-0.304212570190430,0.097143366932869,-0.189178481698036,0.038398116827011,-0.030795827507973,-0.054133314639330,0.102947451174259,-0.070929534733295,-0.142882391810417,-0.076060667634010,0.135644510388374,0.030883952975273,0.013202478177845) * MODEL10_texOff(vec2(1,1));
res += mat4(0.079529039561749,-0.044710516929626,0.074129715561867,0.088761053979397,0.089787863194942,0.374446332454681,-0.274714797735214,0.159622400999069,0.025882093235850,0.119012504816055,0.082151271402836,-0.009431817568839,-0.205941468477249,-0.010650672018528,-0.045886646956205,-0.071901105344296) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.175524443387985,-0.077698543667793,0.147567868232727,-0.030182419344783,0.128531709313393,-0.047449391335249,0.126965925097466,0.037558138370514,0.086650267243385,0.238263621926308,-0.096399225294590,-0.152485609054565,-0.009648381732404,0.054832138121128,-0.241143852472305,0.177735298871994) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.054394863545895,0.012114269658923,0.109454602003098,-0.045532289892435,-0.005952450912446,0.047302704304457,-0.073602043092251,-0.229420483112335,-0.092355407774448,0.137666895985603,-0.171154931187630,0.119569294154644,0.092682652175426,0.017498070374131,-0.061461243778467,-0.232541635632515) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.024647774174809,-0.239532813429832,0.002443117555231,0.140740692615509,-0.151189774274826,-0.179447695612907,-0.084743008017540,0.100322201848030,0.050836019217968,-0.091139867901802,0.238121256232262,0.172909915447235,-0.330036759376526,-0.438985407352448,-0.127311825752258,-0.158888444304466) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.078712046146393,0.057854369282722,0.106207311153412,0.028213581070304,-0.248187780380249,0.191955938935280,-0.034302782267332,0.348484486341476,0.271796882152557,0.064364053308964,0.241585716605186,-0.326626569032669,0.285683095455170,0.057398326694965,-0.052150599658489,0.388830780982971) * MODEL11_texOff(vec2(0,0));
res += mat4(0.055242616683245,-0.138892248272896,0.042548235505819,0.108215354382992,0.096540391445160,0.022385209798813,-0.046068917959929,-0.305193811655045,-0.021523563191295,-0.065982095897198,0.055606786161661,0.340573787689209,-0.273977488279343,-0.097987651824951,-0.160215497016907,-0.297437131404877) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.046162202954292,-0.088470742106438,-0.105079501867294,0.014977553859353,-0.390291601419449,0.182658493518829,-0.247466892004013,0.308256208896637,0.140571266412735,0.085684232413769,0.027930546551943,0.042744562029839,-0.167545646429062,0.009488120675087,0.055166386067867,0.028911842033267) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.083595499396324,0.085182994604111,0.003542464459315,0.079237081110477,0.018105262890458,0.035177443176508,-0.043584268540144,0.013953207992017,-0.355219870805740,-0.056472189724445,-0.303413718938828,0.102041505277157,0.143140941858292,-0.352798223495483,-0.056279402226210,-0.051798686385155) * MODEL11_texOff(vec2(1,0));
res += mat4(0.122984707355499,-0.105259068310261,-0.111641168594360,-0.072026476264000,-0.519809007644653,-0.072098299860954,-0.151699110865593,-0.155993804335594,0.171783387660980,-0.329620718955994,-0.033615034073591,-0.028106225654483,-0.027491893619299,0.155885249376297,-0.026108063757420,0.079957045614719) * MODEL11_texOff(vec2(1,1));
res += mat4(0.019049426540732,-0.389433026313782,0.332640618085861,0.250039875507355,-0.216250181198120,-0.222217440605164,0.128654152154922,0.223967432975769,-0.300820559263229,0.180517002940178,-0.003144442336634,0.090825021266937,-0.003851888235658,-0.018703974783421,0.011917099356651,0.010318166576326) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.131630346179008,-0.161273017525673,-0.107537873089314,-0.100218124687672,-0.319649189710617,-0.103265546262264,-0.042444605380297,0.017830723896623,0.052175946533680,0.494785696268082,-0.043065417557955,0.038395784795284,-0.137717679142952,0.183362334966660,-0.078068226575851,0.001786150271073) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.060484245419502,-0.088188655674458,-0.076018564403057,-0.034759044647217,-0.036895848810673,0.186961904168129,-0.060318958014250,-0.423885852098465,0.158022195100784,-0.037321750074625,0.172184079885483,-0.038951113820076,0.096346884965897,0.035118244588375,-0.103838875889778,-0.098794713616371) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.082638151943684,0.199567705392838,-0.190907195210457,-0.062551103532314,-0.126103952527046,0.225249603390694,-0.072604380548000,0.240945667028427,-0.315480202436447,-0.211718410253525,-0.034564524888992,0.074746653437614,0.129726976156235,-0.151516228914261,0.116958394646645,0.072472028434277) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.066082671284676,-0.011724584735930,-0.148626148700714,0.120151802897453,-0.130540162324905,-0.176938980817795,0.207233205437660,-0.048680093139410,-0.050247740000486,-0.274393409490585,-0.014759563840926,-0.026872999966145,-0.575048208236694,-0.093854345381260,0.234524935483932,0.246966198086739) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.166008204221725,0.019967349246144,-0.046656511723995,-0.083264335989952,-0.177072420716286,0.066000632941723,-0.368534684181213,-0.192804470658302,-0.431106805801392,0.147403538227081,-0.210963711142540,-0.156868830323219,-0.083454713225365,-0.149263292551041,-0.410162985324860,-0.201645031571388) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.000372076348867,-0.261316299438477,0.233552485704422,0.017362665385008,-0.273391664028168,-0.171293616294861,-0.147231534123421,-0.019759912043810,-0.238200843334198,0.223434060811996,-0.316135227680206,-0.105975016951561,0.027427572757006,-0.107544198632240,-0.016670212149620,0.039909534156322) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.219768822193146,-0.255904883146286,0.175442099571228,-0.099136024713516,-0.137181401252747,0.125137850642204,0.131838336586952,0.247537150979042,-0.126865148544312,0.304855704307556,-0.086614593863487,0.082837700843811,0.293401956558228,-0.282602071762085,-0.054480250924826,-0.010654054582119) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.041941393166780,-0.074249327182770,0.067106068134308,-0.022325206547976,-0.149434685707092,-0.098595343530178,0.121392197906971,0.114357955753803,-0.156420513987541,-0.069162517786026,-0.213267058134079,-0.141575112938881,-0.192517504096031,0.034099880605936,-0.194035038352013,-0.081983231008053) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.015054334886372,-0.014247732236981,-0.185950323939323,-0.692663788795471) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL2
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 3_2

vec4 hook()
{
vec4 res = vec4(0.051238171756268,0.016088664531708,0.050098925828934,-0.073771260678768);
res += mat4(-0.242088437080383,-0.141697227954865,0.128108963370323,0.035338129848242,-0.067984111607075,-0.006618312094361,0.148872762918472,0.131191328167915,-0.048734061419964,0.177136108279228,0.027816597372293,-0.343996822834015,0.174155458807945,-0.041940622031689,0.038824483752251,-0.176728188991547) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.004731527529657,0.037243861705065,0.234984025359154,-0.055304866284132,-0.060148447751999,0.111510172486305,0.173611059784889,-0.112013638019562,-0.392630189657211,-0.232303023338318,-0.039434026926756,0.257134050130844,-0.035728443413973,-0.136432155966759,-0.195228382945061,0.181823730468750) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.305188834667206,0.036630727350712,-0.328124731779099,-0.116209827363491,0.024345420300961,0.001013852888718,0.186950296163559,0.011451249942183,-0.349871397018433,-0.241005763411522,0.151908442378044,-0.059334713965654,0.374554753303528,-0.087529473006725,-0.124837137758732,-0.165135487914085) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.068712845444679,0.022149726748466,-0.004813420586288,-0.356994777917862,-0.054798323661089,-0.102365322411060,-0.060698147863150,0.265041112899780,0.051757864654064,0.304363518953323,0.083543233573437,-0.089074820280075,-0.015867400914431,0.288326710462570,-0.074995398521423,-0.335684478282928) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.188165336847305,0.231110870838165,0.089101664721966,-0.147030636668205,-0.020113036036491,0.244670882821083,0.166061922907829,-0.184405222535133,0.037119779735804,-0.003891989588737,0.060798089951277,0.138003423810005,-0.018113492056727,-0.232186064124107,-0.061290089040995,-0.211221352219582) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.024179143831134,0.075353235006332,0.269681483507156,0.043009262531996,0.030399145558476,0.457201421260834,0.080506622791290,0.278093010187149,0.121662199497223,0.271288633346558,0.283333629369736,0.273338615894318,0.068242229521275,-0.149874940514565,0.126602843403816,0.045033883303404) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.042140044271946,0.085421890020370,0.018032703548670,-0.231806337833405,0.102230668067932,0.104448378086090,-0.045779839158058,0.114280499517918,0.003612072905526,-0.280617058277130,0.071380160748959,0.221624687314034,-0.069881014525890,-0.258184522390366,0.032247390598059,-0.008497337810695) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.069666758179665,0.007374810054898,0.012730626389384,0.013272933661938,0.100896574556828,0.230306133627892,0.137447163462639,0.263639867305756,0.002962548984215,-0.054801475256681,-0.015656763687730,-0.042338900268078,-0.000805216259323,0.383162945508957,-0.090224176645279,-0.158643990755081) * MODEL7_texOff(vec2(1,0));
res += mat4(0.135852664709091,-0.019143914803863,-0.120232127606869,0.044825162738562,0.013656974770129,0.483939021825790,0.020476974546909,-0.192592725157738,-0.112599857151508,-0.044987175613642,-0.034804113209248,0.031782142817974,0.045417618006468,0.142179667949677,0.140022099018097,0.221559897065163) * MODEL7_texOff(vec2(1,1));
res += mat4(0.045743387192488,-0.029573254287243,-0.192456305027008,0.044517405331135,0.094491578638554,0.093087598681450,-0.008722757920623,-0.168078154325485,0.167511492967606,0.101807065308094,-0.046419236809015,-0.017010103911161,-0.001836333307438,-0.145351275801659,0.004228873178363,0.022028572857380) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.167330995202065,-0.121621832251549,0.186072766780853,0.117020770907402,0.038852736353874,-0.150274828076363,-0.094531297683716,0.558938801288605,-0.558301687240601,-0.074909679591656,-0.104266114532948,-0.072147630155087,0.066123954951763,0.029848087579012,0.050804421305656,-0.177727714180946) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.108019784092903,-0.160505339503288,0.050074007362127,-0.028592947870493,0.143452242016792,-0.061881039291620,-0.008104558102787,0.083883017301559,-0.292417138814926,0.063389450311661,0.136703774333000,-0.041886929422617,-0.084016889333725,0.187013640999794,0.096093319356441,0.016463322564960) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.010533940047026,-0.233198732137680,0.065639249980450,0.180902302265167,-0.087628982961178,0.117889210581779,0.195384636521339,-0.174289792776108,0.033562991768122,-0.066172309219837,-0.171503573656082,0.127990216016769,0.007849741727114,-0.141505986452103,-0.074259467422962,-0.008372672833502) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.420796215534210,0.136181145906448,0.245928481221199,-0.629086256027222,0.031224060803652,-0.278713703155518,-0.314353138208389,-0.074558407068253,-0.375361233949661,-0.279430836439133,0.123000532388687,0.252556264400482,-0.319524765014648,-0.046733118593693,-0.191433280706406,-0.175343722105026) * MODEL8_texOff(vec2(0,0));
res += mat4(0.331392318010330,0.243273258209229,0.093774788081646,0.149763599038124,0.214700549840927,-0.250636428594589,0.001840927987359,0.299832999706268,-0.191571533679962,0.016291830688715,-0.035039499402046,-0.215591967105865,0.013424952514470,0.197240903973579,0.115770369768143,-0.063566252589226) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.017278861254454,0.172415584325790,0.016241170465946,-0.058258023113012,0.125491023063660,-0.028339069336653,0.038222625851631,0.163199827075005,0.102376163005829,0.156312733888626,-0.111156389117241,0.007162311580032,0.055247724056244,-0.203875213861465,-0.009236244484782,-0.104491904377937) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.060308076441288,-0.043001979589462,-0.076872341334820,0.003783938940614,0.088535241782665,-0.082319848239422,-0.041727568954229,-0.005598132498562,-0.014351614750922,0.023286338895559,-0.098680712282658,-0.011471466161311,-0.072360485792160,-0.087447352707386,-0.151324599981308,-0.168173238635063) * MODEL8_texOff(vec2(1,0));
res += mat4(0.152402281761169,0.064477555453777,0.021941058337688,0.069093920290470,0.023114200681448,-0.009845660068095,-0.082915298640728,0.001763183390722,-0.232754170894623,-0.097665406763554,0.097956299781799,-0.037853375077248,-0.133221700787544,-0.555691719055176,-0.069672495126724,0.136144459247589) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.084386780858040,-0.176462471485138,-0.133344456553459,0.147264182567596,-0.362605512142181,-0.330590188503265,-0.069501578807831,0.188720464706421,-0.147841602563858,-0.084901519119740,0.092528067529202,-0.151102736592293,-0.022184187546372,0.038821432739496,-0.155253246426582,-0.002642361214384) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.446519702672958,-0.387926936149597,0.017657721415162,-0.001386986696161,-0.255232036113739,-0.004823548719287,0.343438327312469,-0.047788891941309,-0.243237867951393,-0.152168437838554,0.094324342906475,-0.041986498981714,-0.092380583286285,-0.042906917631626,-0.001566752674989,-0.162790909409523) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.356902420520782,-0.093100406229496,-0.022216413170099,0.026601850986481,0.093954816460609,0.003368035657331,0.135660454630852,-0.150710672140121,0.075091116130352,-0.222196519374847,0.201139047741890,0.128425821661949,-0.165853172540665,0.070191167294979,0.113308578729630,0.019000919535756) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.124069608747959,-0.084502533078194,0.069561645388603,-0.165728911757469,-0.259262055158615,-0.328855156898499,0.027626775205135,-0.170989736914635,-0.181528627872467,-0.005611429456621,-0.043719410896301,-0.071508355438709,0.058156389743090,-0.105689153075218,-0.270222365856171,0.212480336427689) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.574013769626617,-0.106618069112301,-0.065428406000137,-0.065484553575516,0.040628198534250,0.180862188339233,0.153297603130341,0.020173525437713,-0.080659322440624,-0.276736319065094,0.147103965282440,0.133103460073471,0.040443625301123,0.073448374867439,0.075725287199020,-0.109646916389465) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.277831405401230,-0.218706578016281,0.231095835566521,0.251577377319336,0.011492075398564,0.135876908898354,-0.052547238767147,-0.004013513680547,-0.072538077831268,0.226418644189835,-0.111181020736694,0.129442259669304,-0.319077402353287,0.185286298394203,-0.365307390689850,-0.152873158454895) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.074510999023914,0.001459433929995,-0.139318868517876,-0.176868870854378,-0.176825895905495,0.231446653604507,-0.173719316720963,-0.398200809955597,-0.147817924618721,-0.028649337589741,0.015463219955564,-0.207609727978706,-0.007493122015148,-0.090380012989044,-0.052741955965757,-0.039578851312399) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.086654074490070,-0.316478967666626,0.071700550615788,0.135801628232002,0.044495612382889,0.161440670490265,0.039065077900887,0.080420665442944,0.081897586584091,-0.107149228453636,-0.019521683454514,0.023126326501369,0.004000579938293,0.066829748451710,-0.087677180767059,0.025365930050611) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.035684105008841,-0.254488825798035,-0.214436501264572,0.166793584823608,0.182630196213722,0.112282514572144,0.044277854263783,0.066868759691715,0.037810631096363,0.131594762206078,0.028438126668334,0.023525526747108,0.050845529884100,0.744454324245453,-0.010582797229290,-0.273341298103333) * MODEL9_texOff(vec2(1,1));
res += mat4(0.082669615745544,0.040806114673615,-0.001294686342590,0.034282892942429,0.259778857231140,-0.177588567137718,-0.016461310908198,0.121509447693825,-0.097430333495140,-0.095552682876587,0.096259616315365,-0.162635311484337,-0.073103763163090,-0.053903039544821,0.133150413632393,-0.015324464999139) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.062859632074833,0.044624600559473,0.023336043581367,0.105733349919319,0.047784544527531,-0.068833112716675,-0.283095389604568,-0.116466984152794,0.001487541594543,0.048096999526024,0.355774194002151,-0.083050534129143,0.109637171030045,0.108412615954876,-0.201598748564720,0.059242770075798) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.029926754534245,-0.017197923734784,-0.120783552527428,0.000279615254840,-0.026458160951734,-0.000676498166285,-0.208422154188156,-0.029455011710525,-0.032379552721977,0.050196595489979,-0.096018061041832,0.028230933472514,-0.079809479415417,0.135789647698402,-0.000852446362842,-0.012370148673654) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.153308823704720,0.221290558576584,-0.117956101894379,0.235117882490158,-0.163869187235832,0.130257502198219,0.168409690260887,0.079725593328476,-0.201282978057861,-0.116233929991722,0.061259768903255,-0.204462409019470,-0.170076653361320,0.018090447410941,-0.027513107284904,0.042839679867029) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.215030878782272,-0.096082501113415,-0.009014002047479,-0.034916631877422,0.126116722822189,0.039265424013138,0.059221945703030,-0.064590215682983,-0.268810391426086,0.095114856958389,0.206223025918007,0.105588182806969,-0.035356659442186,-0.096931427717209,-0.115727856755257,0.185303166508675) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.304995417594910,-0.327854067087173,-0.066997587680817,0.172688722610474,0.040606707334518,-0.353859573602676,0.140205115079880,-0.002692724810913,0.232926413416862,0.280883520841599,-0.187197998166084,0.062672130763531,0.176752775907516,0.157321810722351,0.019312357529998,0.043065786361694) * MODEL10_texOff(vec2(0,1));
res += mat4(0.029631348326802,-0.083217360079288,-0.069957651197910,-0.230853781104088,-0.142490535974503,-0.055527944117785,0.085871681571007,-0.279357165098190,-0.108188256621361,-0.245125457644463,-0.056737806648016,0.044016811996698,0.031128397211432,0.042620524764061,0.015578976832330,0.005441975314170) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.031849898397923,-0.234738960862160,0.219196423888206,0.006974590010941,0.078718408942223,-0.151352480053902,0.046248212456703,-0.205080747604370,-0.174502700567245,-0.084083177149296,-0.089417025446892,0.059225980192423,0.053727008402348,0.000239854809479,-0.000316088320687,-0.010215759277344) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.076070487499237,-0.158413261175156,-0.015954552218318,-0.148199483752251,0.165846750140190,-0.076896004378796,-0.210408210754395,0.139558136463165,-0.028333431109786,-0.160149589180946,-0.009316566400230,0.030862586572766,0.074879996478558,-0.078886106610298,0.025120954960585,-0.009037906304002) * MODEL10_texOff(vec2(1,1));
res += mat4(0.108479388058186,-0.101198635995388,-0.056153174489737,-0.005250420887023,0.196389600634575,-0.033487152308226,0.148759007453918,-0.304549932479858,-0.054055415093899,-0.095853239297867,-0.058046024292707,-0.090321563184261,0.139752224087715,0.042811710387468,0.103016212582588,-0.210580900311470) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.250992029905319,0.020863639190793,-0.083349019289017,0.175238564610481,0.125250071287155,-0.033635202795267,0.061265327036381,-0.043505776673555,0.064244672656059,0.085135973989964,-0.212639763951302,-0.003378985682502,0.373312860727310,0.162173613905907,0.260862082242966,0.083521634340286) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.020688867196441,-0.100985303521156,-0.020866636186838,0.040510207414627,0.025002280250192,0.079551018774509,-0.028234725818038,-0.139019459486008,-0.216525658965111,0.121688373386860,-0.147583842277527,0.032310683280230,-0.038287520408630,-0.010793043300509,-0.153936862945557,-0.000048158217396) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.052327804267406,-0.029320269823074,0.038861598819494,0.109683297574520,-0.299005508422852,0.138524278998375,0.161877706646919,-0.414169877767563,-0.000761412724387,0.219302043318748,0.160121500492096,0.049845192581415,0.154248654842377,0.114660978317261,-0.002894330071285,-0.633276045322418) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.178691715002060,0.098102688789368,-0.067268259823322,-0.087473809719086,0.254341959953308,0.160378813743591,0.262032687664032,-0.299927562475204,0.309844136238098,0.178722813725471,0.074712298810482,0.085907503962517,0.165838569402695,0.067102365195751,0.037561845034361,0.190262585878372) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.107945226132870,0.001148150768131,0.085857070982456,0.210480570793152,0.353182166814804,0.006447085645050,0.086979262530804,-0.115686669945717,-0.055124390870333,-0.211309015750885,-0.039450485259295,-0.030592465773225,-0.025569472461939,0.162972360849380,0.020765565335751,-0.309599399566650) * MODEL11_texOff(vec2(0,1));
res += mat4(0.019193289801478,0.145550057291985,-0.027526017278433,-0.102853097021580,0.123112149536610,0.008636118844151,0.057032775133848,-0.127608895301819,-0.046221505850554,0.243026733398438,0.021779324859381,-0.257661610841751,-0.045972932130098,-0.090245909988880,0.013022019527853,0.152752980589867) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.004632079973817,-0.061395756900311,0.047278665006161,-0.066340111196041,0.049351450055838,-0.019306467846036,-0.070013552904129,-0.190569296479225,-0.061196792870760,0.245026916265488,0.078032061457634,-0.056841667741537,0.166529849171638,0.210695236921310,-0.073110535740852,-0.118245601654053) * MODEL11_texOff(vec2(1,0));
res += mat4(0.088357247412205,-0.031526379287243,-0.081772789359093,0.027349326759577,0.063754834234715,0.260176420211792,0.085629716515541,-0.023294305428863,0.163436695933342,0.042809523642063,-0.027300018817186,0.279045581817627,0.023881413042545,0.024551820009947,0.123985819518566,0.054037388414145) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.372987866401672,-0.124311357736588,-0.056677188724279,0.142617180943489,-0.160000517964363,-0.055228773504496,-0.037441503256559,0.427543759346008,-0.104688256978989,-0.122637309134007,-0.115845680236816,-0.077849373221397,0.060604833066463,0.024731611832976,0.049390666186810,-0.135170102119446) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.171666547656059,-0.055818662047386,0.113619960844517,-0.087492004036903,0.125799223780632,0.076291076838970,0.269811958074570,0.092660680413246,-0.072970233857632,-0.036748234182596,-0.060602080076933,0.017514593899250,0.142746627330780,0.021481754258275,-0.020370114594698,0.156416922807693) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.099733255803585,-0.034016869962215,0.020960837602615,-0.006499221082777,0.185360074043274,0.147783696651459,-0.265282958745956,0.104675307869911,-0.007284130435437,-0.282747983932495,0.203584700822830,-0.107034869492054,-0.077146686613560,0.008131762035191,-0.019464069977403,-0.007300430908799) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.061626568436623,-0.269369333982468,-0.113643050193787,-0.260070800781250,-0.064868427813053,0.320373237133026,0.169437512755394,0.120421260595322,-0.305918395519257,-0.109886422753334,0.327368259429932,0.160977125167847,-0.104347959160805,0.026777321472764,0.065032340586185,-0.173664629459381) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.301887720823288,-0.095517776906490,-0.429327309131622,0.155409425497055,-0.027774382382631,0.215151578187943,0.241466969251633,0.315414220094681,-0.041962709277868,-0.052360415458679,0.110839739441872,-0.323880791664124,-0.117276832461357,-0.239668041467667,0.032608702778816,0.400116860866547) * MODEL12_texOff(vec2(0,0));
res += mat4(0.007054839283228,0.057045724242926,-0.173408478498459,-0.172203540802002,0.115589842200279,-0.034576129168272,0.081999763846397,-0.230205833911896,-0.011373180896044,0.102835930883884,0.142393723130226,0.083572648465633,0.186257362365723,0.050113100558519,-0.000853075471241,-0.094392813742161) * MODEL12_texOff(vec2(0,1));
res += mat4(0.024525528773665,-0.042740866541862,-0.034200698137283,0.306458532810211,-0.140304401516914,0.498956948518753,0.027568476274610,-0.087087534368038,-0.235121473670006,-0.185918331146240,0.208450585603714,-0.279644697904587,-0.042534530162811,-0.016989953815937,-0.017126211896539,0.053825758397579) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.011256840080023,0.020814893767238,-0.086609274148941,-0.167761310935020,-0.125919684767723,0.111535288393497,0.212946519255638,0.233803614974022,0.075593478977680,-0.081015199422836,0.034441459923983,0.125794395804405,-0.047073502093554,0.042471513152122,-0.047321401536465,-0.024550022557378) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.066385753452778,-0.070071317255497,0.102920748293400,0.012095959857106,0.012886972166598,-0.099678359925747,-0.035958293825388,0.146216943860054,0.109593816101551,-0.080917499959469,-0.136034741997719,-0.078093923628330,-0.026847319677472,0.052238337695599,0.015946144238114,-0.084675490856171) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.032962407916784,0.005540992133319,-0.195957168936729,-0.120652735233307) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL3
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 3_3

vec4 hook()
{
vec4 res = vec4(-0.034666791558266,-0.073358699679375,0.065135836601257,0.086158305406570);
res += mat4(-0.278988540172577,0.045074436813593,-0.061377204954624,-0.362376540899277,-0.102928563952446,0.196218445897102,-0.003565623424947,-0.144414722919464,-0.350672632455826,0.175214707851410,0.079867199063301,0.218277722597122,-0.338607430458069,-0.040776774287224,-0.077327996492386,-0.097528517246246) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.277235716581345,0.244601726531982,0.009130854159594,-0.511140108108521,0.010810637846589,-0.075856752693653,-0.097144111990929,-0.628948807716370,-0.046716324985027,0.009752927348018,-0.011580569669604,0.192382961511612,-0.237964034080505,-0.304543137550354,-0.004810769110918,0.267286539077759) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.095112666487694,-0.146579757332802,0.035022061318159,-0.146955683827400,-0.013973182067275,0.302434891462326,-0.044135235249996,-0.261279344558716,-0.112998910248280,0.442055612802505,-0.043078470975161,-0.105951383709908,0.148086443543434,-0.225534021854401,0.057976529002190,0.010775660164654) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.198802232742310,-0.039818365126848,-0.054530516266823,-0.161413386464119,0.272700756788254,-0.101925201714039,-0.093537762761116,-0.193394407629967,0.047937054187059,-0.033550072461367,0.263633131980896,0.103561818599701,-0.101463593542576,-0.089961878955364,0.088460765779018,-0.038826230913401) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.137730553746223,-0.233429506421089,-0.000892648764420,0.312545418739319,0.361671209335327,-0.362382978200912,-0.137774944305420,0.018306018784642,0.046311657875776,0.257225573062897,0.099359944462776,0.040708102285862,0.047013644129038,0.058999441564083,-0.055266741663218,-0.269582718610764) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.152337357401848,0.205747693777084,-0.100881263613701,-0.034857243299484,-0.031585320830345,-0.225988104939461,-0.148109704256058,-0.102128267288208,0.232339456677437,0.079711459577084,-0.110926203429699,-0.115185536444187,0.045269299298525,-0.100964039564133,-0.035930015146732,-0.027184454724193) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.231342345476151,-0.151710286736488,-0.002208724385127,0.075824901461601,-0.063007034361362,-0.177606537938118,-0.103561937808990,-0.068696789443493,0.036526236683130,-0.073188461363316,0.050627388060093,-0.067288562655449,0.040952015668154,-0.143627166748047,0.048296570777893,-0.111889459192753) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.224893718957901,0.216944426298141,-0.201312392950058,-0.087855853140354,0.140268802642822,-0.248299360275269,-0.058015715330839,-0.063194043934345,-0.506964743137360,0.478945046663284,0.171002268791199,0.124019965529442,-0.227305918931961,-0.382744938135147,0.093756482005119,0.139849528670311) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.033012554049492,-0.116953216493130,-0.137857422232628,-0.093467757105827,0.001033431384712,-0.387706845998764,-0.058896202594042,0.115658789873123,0.263974130153656,-0.264327228069305,-0.044276788830757,-0.133264839649200,0.117244906723499,0.028457153588533,-0.118307672441006,0.072257936000824) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.074084974825382,-0.118043251335621,-0.023576861247420,0.076892927289009,-0.047716885805130,0.159739091992378,0.007679192814976,0.104791872203350,0.040860712528229,-0.022541733458638,-0.057540059089661,0.089721821248531,-0.163509815931320,-0.082921884953976,0.001046644058079,-0.041046198457479) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.250046998262405,0.187290281057358,-0.099949486553669,-0.149417951703072,-0.363293707370758,0.258132487535477,-0.057465407997370,-0.170978069305420,0.038246639072895,-0.155887767672539,-0.008230862207711,0.256511211395264,-0.128229677677155,0.046072021126747,-0.013818740844727,0.016314120963216) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.153824985027313,0.134702980518341,-0.021641844883561,0.034260865300894,0.145510181784630,0.110958807170391,-0.031422350555658,-0.068124607205391,0.006610363721848,0.015651548281312,0.056125041097403,0.077919885516167,-0.011681431904435,-0.058016341179609,0.063150204718113,0.007994137704372) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.034043438732624,0.111734047532082,-0.145060107111931,-0.160776332020760,0.115875147283077,-0.024169851094484,0.132799863815308,0.076025389134884,-0.171987444162369,0.128146082162857,-0.110198408365250,0.029818572103977,-0.242292419075966,0.026703381910920,0.037796966731548,-0.001606123289093) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.457205384969711,-0.247534975409508,-0.133677452802658,0.013087395578623,-0.250026792287827,0.073420874774456,-0.193828970193863,0.092000059783459,-0.108150258660316,0.203003406524658,-0.025598179548979,0.104315727949142,-0.176022157073021,-0.005817651748657,0.097525201737881,0.275246918201447) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.162393897771835,-0.110086634755135,-0.092138566076756,0.050266165286303,-0.055753536522388,0.259507656097412,-0.041143286973238,-0.073105908930302,-0.093368329107761,-0.161266043782234,0.154193997383118,0.012858331203461,0.098822005093098,-0.279190033674240,0.068726107478142,0.186531230807304) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.124954715371132,-0.057242065668106,-0.048758622258902,0.021881783381104,0.006710629910231,-0.070546694099903,0.094940647482872,-0.088376574218273,0.012683142907917,-0.315871924161911,-0.166143521666527,-0.062248293310404,-0.098646961152554,-0.007728486321867,-0.005293004680425,0.063215665519238) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.468132674694061,-0.100154034793377,-0.049943249672651,-0.066133126616478,-0.140752762556076,-0.112709440290928,-0.028068482875824,0.172668889164925,-0.300986945629120,-0.019672486931086,0.032301977276802,0.060927070677280,0.035732474178076,0.390221059322357,-0.323492407798767,-0.113084219396114) * MODEL8_texOff(vec2(1,0));
res += mat4(0.339509844779968,0.164710849523544,-0.003383751725778,0.011613206937909,-0.311204791069031,-0.178003013134003,-0.018354464322329,-0.010998466052115,-0.034767337143421,0.093077987432480,0.083142675459385,0.078692622482777,0.045227669179440,0.009126944467425,-0.172700405120850,-0.014651057310402) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.089859403669834,0.159681633114815,-0.040532447397709,-0.119688175618649,0.040683235973120,0.049172598868608,-0.077982150018215,-0.205328032374382,-0.104771241545677,-0.017806671559811,0.055931180715561,0.019218070432544,0.027562934905291,-0.040755573660135,-0.081584408879280,-0.006161458324641) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.097735852003098,-0.043110713362694,0.001423436449841,-0.109495528042316,0.180568650364876,0.356318086385727,-0.082006700336933,-0.564889967441559,-0.047093570232391,0.124689772725105,-0.042633198201656,-0.269800335168839,0.033795211464167,0.188755199313164,-0.080643832683563,-0.238069221377373) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.004214893560857,-0.051482427865267,0.014087471179664,0.026619639247656,0.193130999803543,0.066179737448692,-0.013079857453704,-0.256015658378601,0.052117530256510,0.346264630556107,-0.086472980678082,-0.042326569557190,-0.083404049277306,0.031463526189327,-0.047960892319679,-0.433332473039627) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.342494577169418,-0.171628832817078,-0.069966666400433,-0.019236344844103,-0.066165864467621,0.202378928661346,-0.172605589032173,-0.153904497623444,0.086419247090816,-0.016468401998281,-0.038051888346672,-0.050217173993587,0.294100135564804,0.215428799390793,-0.236251637339592,-0.264362305402756) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.018802743405104,-0.039430335164070,-0.128979504108429,0.195777997374535,-0.198228761553764,-0.126002952456474,-0.000547749048565,0.033765658736229,-0.240233868360519,-0.206134468317032,-0.062743000686169,-0.118778690695763,0.412637263536453,-0.070061728358269,-0.016252554953098,0.045706648379564) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.245063394308090,0.251619040966034,-0.108875751495361,0.182690486311913,-0.138591900467873,0.011376526206732,0.047292146831751,-0.105388268828392,0.135366097092628,0.051958989351988,-0.110497891902924,-0.098587311804295,-0.159484267234802,-0.380693495273590,0.070420071482658,-0.225894242525101) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.259996920824051,0.149839803576469,0.077026002109051,0.166402474045753,0.313756287097931,0.147582456469536,0.031423766165972,0.051570031791925,-0.201917335391045,0.091608792543411,-0.076282083988190,0.021366517990828,0.021545751020312,0.195020526647568,-0.097378484904766,-0.024985129013658) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.034868285059929,0.209504812955856,-0.086018227040768,-0.028020115569234,0.033540546894073,-0.569542884826660,0.085869342088699,0.016945585608482,-0.030311705544591,-0.301808208227158,-0.006652980577201,0.041086867451668,0.158205032348633,-0.032436076551676,0.132451474666595,-0.120469957590103) * MODEL9_texOff(vec2(1,0));
res += mat4(0.541907608509064,-0.180305868387222,-0.183026298880577,-0.319353222846985,0.293785810470581,-0.042875152081251,0.066124498844147,-0.009638521820307,-0.228681266307831,-0.151711285114288,0.063386395573616,0.106920056045055,0.513478338718414,-0.261004596948624,0.185820490121841,0.258411794900894) * MODEL9_texOff(vec2(1,1));
res += mat4(0.001015950227156,0.013771622441709,0.080501936376095,0.134322836995125,-0.194244399666786,-0.131742596626282,0.070346564054489,0.001138516236097,-0.394519388675690,0.020903794094920,0.023343186825514,-0.090605549514294,0.010306585580111,0.070930905640125,-0.110409989953041,-0.090214438736439) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.006848617922515,0.025778830051422,-0.040053538978100,0.137274771928787,-0.341886252164841,-0.014675142243505,0.117056854069233,-0.104574181139469,-0.063625477254391,0.040417477488518,-0.153797388076782,-0.351329088211060,-0.260928601026535,-0.107853226363659,-0.069495834410191,0.170144543051720) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.028961455449462,0.001892973785289,0.017735905945301,0.128357693552971,0.224745273590088,0.125226795673370,0.022742647677660,0.366850942373276,-0.160501286387444,-0.025060594081879,-0.070305548608303,-0.080638185143471,-0.209997922182083,-0.083737626671791,0.025713356211782,0.052061092108488) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.012417025864124,0.251177430152893,-0.001340380753390,0.526257634162903,0.051900330930948,0.028386209160089,-0.044628821313381,0.161715999245644,-0.389936327934265,-0.104577936232090,0.052254989743233,0.071669511497021,0.166623800992966,-0.047698009759188,0.010595656000078,0.223299458622932) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.001173787750304,-0.024336213245988,-0.224814787507057,-0.044000208377838,-0.134423062205315,-0.006313070654869,-0.194627106189728,0.032501433044672,-0.005148151423782,0.059250060468912,-0.187100544571877,-0.304653584957123,-0.006306741852313,0.396593242883682,-0.524465143680573,-0.227741017937660) * MODEL10_texOff(vec2(0,0));
res += mat4(0.367909014225006,0.177063986659050,-0.071253731846809,0.031631991267204,0.206798791885376,0.166849955916405,-0.115469411015511,0.237246260046959,0.034532461315393,-0.035752832889557,-0.078820906579494,0.004662151448429,0.053005985915661,0.165307939052582,-0.074336588382721,0.127903550863266) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.266080498695374,0.193525969982147,-0.121665336191654,-0.020925501361489,0.166478797793388,0.085289418697357,-0.093381948769093,-0.096364788711071,0.028745921328664,-0.200765877962112,0.098326697945595,0.047255780547857,0.091815404593945,-0.090317152440548,0.042733583599329,0.113932095468044) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.108158633112907,0.280335098505020,-0.114906288683414,0.069536060094833,0.114370949566364,-0.158142298460007,-0.333815395832062,-0.342894434928894,-0.486216217279434,-0.517107248306274,0.168196111917496,0.199288532137871,0.212826728820801,0.012923187576234,-0.085809744894505,-0.217878565192223) * MODEL10_texOff(vec2(1,0));
res += mat4(0.177768990397453,-0.131149932742119,0.075364857912064,0.187080100178719,0.303325951099396,-0.154447630047798,-0.142187207937241,-0.030607732012868,-0.213353142142296,-0.212921619415283,0.068073913455009,0.088495761156082,-0.050819106400013,0.155501052737236,-0.015460285358131,-0.063126534223557) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.400053083896637,0.094451256096363,-0.115099087357521,-0.079001769423485,0.017100684344769,-0.166465640068054,0.094535164535046,0.002234364859760,0.129077762365341,-0.008538085035980,0.009296917356551,0.146826699376106,0.077210091054440,0.090618245303631,-0.063011370599270,0.045290790498257) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.007929964922369,0.221315249800682,-0.177932977676392,0.058648303151131,-0.145803153514862,0.109696939587593,0.121888786554337,0.077524371445179,-0.304840415716171,-0.099111422896385,0.002921323059127,0.021043041720986,0.065817467868328,0.058229424059391,0.057371363043785,-0.135112881660461) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.011153669096529,0.178505182266235,-0.022637842223048,-0.002540609566495,-0.039055917412043,-0.081997402012348,0.025679083541036,0.019266635179520,0.060085173696280,0.054274398833513,-0.022980973124504,0.108113259077072,0.022562388330698,-0.086473457515240,0.038129549473524,0.007850700058043) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.151555880904198,0.088833756744862,-0.156744778156281,-0.021003225818276,0.033310815691948,-0.062647081911564,0.113155871629715,0.112521804869175,0.230314940214157,0.081482343375683,0.079606868326664,0.051472198218107,-0.290728658437729,-0.029744304716587,-0.035783398896456,-0.070752181112766) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.187740385532379,0.119892060756683,-0.027137439697981,0.123216927051544,0.340649664402008,-0.070317819714546,0.125570878386497,0.155803740024567,-0.129802286624908,0.197289511561394,-0.029759831726551,0.044460706412792,0.101005531847477,-0.087493643164635,0.034856509417295,0.004448813386261) * MODEL11_texOff(vec2(0,0));
res += mat4(0.131805732846260,0.004939216189086,-0.091762475669384,-0.141702964901924,0.020060533657670,-0.190953850746155,0.050704553723335,-0.203189700841904,0.059687077999115,0.035863984376192,-0.116810612380505,-0.086634725332260,0.042395841330290,-0.052746221423149,0.158707648515701,0.047281060367823) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.016549739986658,-0.058569420129061,-0.036676265299320,0.010962077416480,0.330707550048828,0.033046498894691,-0.053595419973135,-0.056418277323246,-0.269350022077560,-0.136904567480087,0.003196910489351,0.033951900899410,0.417661756277084,-0.041199166327715,-0.167671129107475,-0.149008914828300) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.011653013527393,-0.284071117639542,-0.076034598052502,-0.268208265304565,-0.446052968502045,0.056186817586422,0.097176909446716,-0.019013196229935,0.031489085406065,0.194827005267143,-0.116668865084648,-0.053902756422758,-0.220466449856758,-0.068897455930710,0.094063334167004,0.027932208031416) * MODEL11_texOff(vec2(1,0));
res += mat4(0.218653067946434,-0.038901008665562,0.035417459905148,-0.062055051326752,-0.126988366246223,0.274049431085587,0.053946029394865,0.138491243124008,-0.113190658390522,-0.204787820577621,-0.046978142112494,0.002297929255292,0.151208087801933,0.167273834347725,0.040900755673647,-0.005787814036012) * MODEL11_texOff(vec2(1,1));
res += mat4(0.185303136706352,0.414455711841583,-0.117311611771584,-0.236453801393509,0.170405551791191,0.147127673029900,-0.091359555721283,-0.121638268232346,-0.291575521230698,-0.023740772157907,-0.002875442383811,0.114684440195560,-0.217243969440460,0.052682869136333,0.017152935266495,0.065358079969883) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.004613537341356,0.097939126193523,-0.028448287397623,-0.218251213431358,0.125680342316628,-0.060762051492929,0.092384882271290,0.015228960663080,-0.238323792815208,-0.271920830011368,0.089886076748371,-0.012191666290164,-0.074513636529446,-0.029879847541451,-0.038986589759588,0.088878877460957) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.061029650270939,-0.148960322141647,0.040511589497328,0.031567502766848,-0.149075552821159,-0.106318525969982,0.087125793099403,-0.007300920784473,-0.129252880811691,0.317529052495956,-0.053477309644222,-0.265944927930832,0.114161498844624,-0.017037887126207,0.103493027389050,-0.033112745732069) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.231339290738106,0.092248618602753,-0.008743118494749,0.020193070173264,-0.222841411828995,0.099213227629662,-0.131731584668159,0.145451322197914,0.152096033096313,0.018534539267421,-0.040020339190960,-0.216251745820045,-0.024912809953094,0.058831457048655,0.021196847781539,-0.099520087242126) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.042230620980263,-0.156794920563698,0.129428610205650,-0.079919479787350,0.121032379567623,0.107393831014633,0.009940218180418,0.001348060788587,0.012934541329741,0.021029332652688,0.000604381668381,0.091136775910854,-0.109021030366421,0.187858223915100,-0.708191752433777,-0.377545118331909) * MODEL12_texOff(vec2(0,0));
res += mat4(0.069478027522564,-0.134410947561264,0.142524927854538,0.019822210073471,-0.082490891218185,0.042879458516836,0.037278536707163,0.104692846536636,0.056536585092545,-0.146898612380028,-0.085236705839634,0.030207458883524,0.137992411851883,-0.059364676475525,0.267685741186142,-0.215230837464333) * MODEL12_texOff(vec2(0,1));
res += mat4(0.084955990314484,-0.159344211220741,0.196580231189728,0.111526504158974,-0.186143457889557,-0.207104817032814,0.201669454574585,0.212687149643898,-0.191067233681679,-0.279729396104813,-0.053253863006830,0.020092366263270,0.095173969864845,-0.095934011042118,0.044346284121275,-0.034253738820553) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.258052110671997,-0.170953989028931,0.345395535230637,0.174028754234314,-0.182088077068329,-0.007119200192392,-0.076354138553143,0.040389165282249,-0.210290327668190,0.061816450208426,-0.152973771095276,-0.249825760722160,-0.445305049419403,-0.466376781463623,0.269073307514191,0.171436801552773) * MODEL12_texOff(vec2(1,0));
res += mat4(0.106755651533604,0.069839723408222,0.064182437956333,0.035072501748800,0.141724139451981,0.034569010138512,-0.146431267261505,-0.128278970718384,0.158443287014961,-0.182036146521568,-0.026651397347450,0.097009949386120,0.102766223251820,-0.003832290880382,0.159134641289711,0.110289439558983) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.076297722756863,-0.032434932887554,0.891906797885895,-0.406832307577133) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL4
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 3_4

vec4 hook()
{
vec4 res = vec4(0.113163694739342,0.182520002126694,-0.205848664045334,0.050862945616245);
res += mat4(0.142507791519165,0.051389802247286,0.162920519709587,-0.028415346518159,0.037583757191896,0.128463104367256,0.135399073362350,-0.081550151109695,-0.216245159506798,-0.039432752877474,0.017275635153055,-0.127564087510109,-0.052993483841419,0.152862608432770,-0.117246948182583,0.103999532759190) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.117637157440186,-0.097745887935162,0.178494125604630,0.037432271987200,-0.147195070981979,0.015883754938841,0.253173798322678,-0.045966051518917,0.208170905709267,0.128478705883026,0.117526695132256,0.171153157949448,0.227202340960503,-0.399161189794540,0.042468134313822,0.061031948775053) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.014869225211442,-0.101507738232613,0.015750460326672,0.000820572895464,-0.095822930335999,-0.094203986227512,0.272961258888245,-0.106790877878666,-0.060082342475653,0.194405272603035,0.179347813129425,0.026177898049355,-0.022466478869319,0.065693497657776,-0.125976964831352,0.039957974106073) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.207417890429497,-0.072040513157845,-0.080873489379883,-0.221322298049927,0.022503556683660,-0.201954245567322,0.082817196846008,-0.234075441956520,-0.288097590208054,-0.101319745182991,0.089401207864285,-0.133793994784355,0.056441858410835,-0.092792585492134,-0.022648656740785,0.038746319711208) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.333279192447662,-0.333817273378372,0.168842941522598,0.160600304603577,-0.306945621967316,0.017335714772344,-0.014242139644921,-0.003993272315711,0.227336809039116,0.119899764657021,-0.260719209909439,0.169764414429665,0.194175213575363,0.030021196231246,0.039520271122456,-0.074765726923943) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.039337217807770,-0.136460095643997,0.137295499444008,-0.002473324770108,0.123119942843914,-0.089957043528557,0.084427453577518,0.047334376722574,0.113586239516735,0.147630512714386,-0.254942178726196,0.100800976157188,0.029335612431169,-0.037701640278101,-0.005496841389686,-0.259300619363785) * MODEL7_texOff(vec2(0,1));
res += mat4(0.044086731970310,-0.147554680705070,0.072704739868641,0.101839967072010,0.032256599515676,-0.069258339703083,0.124301992356777,-0.102886475622654,-0.200552701950073,0.076020538806915,0.026112936437130,-0.136589094996452,-0.011500799097121,-0.112957999110222,-0.057608004659414,0.050745408982038) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.063201203942299,-0.161677256226540,-0.067728310823441,-0.006189151201397,-0.125697255134583,-0.180139020085335,0.176171407103539,0.293624311685562,-0.135672062635422,-0.153570502996445,0.172534182667732,-0.009397404268384,-0.175420537590981,0.123698718845844,0.067103251814842,0.024562871083617) * MODEL7_texOff(vec2(1,0));
res += mat4(0.068519860506058,0.063142113387585,-0.097103290259838,-0.017842656001449,0.077783219516277,0.018908744677901,0.067613199353218,-0.044968217611313,0.076695270836353,-0.451528280973434,0.047031275928020,0.026544231921434,0.034379586577415,0.038853920996189,0.069210864603519,-0.011984348297119) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.071553185582161,0.049681454896927,-0.067373685538769,-0.149277865886688,0.001062919269316,-0.060154411941767,-0.015328068286180,0.024274587631226,-0.123057164251804,0.175723269581795,0.096186645328999,-0.151082247495651,0.036795731633902,0.021348264068365,-0.015006448142231,-0.061796940863132) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.107541650533676,0.273435801267624,-0.053789492696524,-0.033755440264940,-0.260011047124863,0.523672580718994,-0.161585643887520,0.157742559909821,-0.015503342263401,-0.007767575792968,0.102551206946373,-0.056197274476290,0.149542704224586,-0.093310095369816,0.121714428067207,-0.079770080745220) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.034914512187243,0.035998634994030,-0.054077867418528,-0.029445614665747,0.022772561758757,0.140751019120216,-0.179568290710449,-0.277910470962524,0.023547811433673,0.008582337759435,-0.028019454330206,-0.001773972529918,-0.073411323130131,0.045364018529654,0.066917933523655,0.118224009871483) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.132976323366165,0.254454344511032,-0.055690187960863,-0.335880368947983,-0.084858253598213,-0.096835948526859,-0.025644131004810,0.121150702238083,-0.107597827911377,0.088025361299515,0.259150564670563,-0.477829724550247,-0.102368049323559,0.064137369394302,0.100338645279408,-0.047566000372171) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.253292351961136,-0.798740744590759,0.825856387615204,0.533208549022675,0.112230867147446,-0.072703503072262,-0.146907448768616,0.001527442713268,0.180738791823387,-0.054023087024689,0.084735356271267,-0.319318801164627,-0.204412698745728,-0.148061066865921,0.130329787731171,0.451751679182053) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.088182702660561,0.016566943377256,0.093640819191933,0.068087168037891,0.090968303382397,-0.211730763316154,0.006373261101544,-0.334873944520950,0.076090246438980,0.099882721900940,-0.109924606978893,0.092592388391495,-0.325683772563934,-0.318281590938568,0.253022402524948,0.024533389136195) * MODEL8_texOff(vec2(0,1));
res += mat4(0.115829274058342,-0.064693935215473,0.020994247868657,0.044238287955523,-0.146467283368111,-0.097441151738167,0.062408141791821,-0.084284760057926,0.268770456314087,0.003619899507612,-0.059106379747391,-0.052623860538006,0.000664322054945,-0.027593702077866,-0.006430048495531,-0.059611499309540) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.132840648293495,0.074719235301018,-0.127683833241463,0.057286214083433,-0.008937122300267,-0.009013052098453,-0.099487319588661,0.065935567021370,0.197654381394386,0.057397734373808,0.077602952718735,-0.111775279045105,0.123694822192192,-0.175557285547256,-0.024136966094375,-0.180124238133430) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.031665235757828,0.078578956425190,-0.116496317088604,0.163452491164207,0.145953103899956,-0.073387227952480,0.064817912876606,-0.157143846154213,-0.002849236829206,0.012652019970119,0.023141752928495,-0.121603555977345,0.171873703598976,-0.019572038203478,0.102753788232803,-0.020847590640187) * MODEL8_texOff(vec2(1,1));
res += mat4(0.022237284108996,0.081413626670837,0.034752406179905,-0.078265860676765,0.097649663686752,0.021748594939709,0.171004861593246,0.174723163247108,0.052098840475082,-0.163842156529427,0.109077915549278,-0.007154216989875,0.121898889541626,-0.046008698642254,-0.021789235994220,0.030221393331885) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.117900155484676,0.023721110075712,-0.215107575058937,-0.033673021942377,-0.223417177796364,0.060499306768179,0.226457476615906,0.208753228187561,-0.053252834826708,-0.055650219321251,-0.125915184617043,0.161202132701874,-0.193550646305084,0.026160074397922,0.015077206306159,-0.125721186399460) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.054670929908752,-0.138807877898216,-0.078766457736492,0.008545402437449,-0.098746351897717,0.129369482398033,0.232128307223320,0.196486845612526,-0.128819361329079,0.150501161813736,-0.071621373295784,-0.112871445715427,-0.040628623217344,0.092337764799595,0.039215978235006,0.020147306844592) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.013944971375167,-0.179380208253860,-0.020544782280922,0.111530579626560,0.185873582959175,0.021516950801015,0.057718075811863,0.447223424911499,0.090546675026417,0.082414723932743,0.085453450679779,-0.008169770240784,-0.010501067154109,0.402107656002045,-0.333008170127869,0.149539753794670) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.298982352018356,0.153686702251434,0.145597502589226,0.149497181177139,-0.233430966734886,-0.173296183347702,0.145018935203552,-0.228092402219772,-0.083671696484089,-0.164775490760803,0.310305327177048,-0.019126746803522,0.176918938755989,-0.107287876307964,0.164951726794243,-0.243877679109573) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.155906796455383,-0.057466264814138,0.153217822313309,-0.058245170861483,-0.352469563484192,-0.390673130750656,0.027203496545553,0.417463868856430,0.117703281342983,-0.221552670001984,-0.199738755822182,-0.211279079318047,-0.193369537591934,0.151024758815765,0.012378559447825,0.117611072957516) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.020054075866938,0.091398037970066,0.032078783959150,0.101964585483074,0.297395616769791,-0.066673129796982,-0.033485781401396,0.282728552818298,0.044016916304827,-0.048701968044043,-0.025520347058773,-0.071124799549580,0.204337790608406,0.106405325233936,-0.021118609234691,-0.145560979843140) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.140984356403351,-0.196971818804741,-0.138818323612213,0.148210510611534,-0.089509025216103,-0.086520671844482,0.138311550021172,0.260781049728394,0.115724988281727,-0.019353518262506,0.040968239307404,-0.045705672353506,-0.157967641949654,-0.183290332555771,0.051056530326605,0.123853936791420) * MODEL9_texOff(vec2(1,0));
res += mat4(0.122058041393757,-0.243861824274063,-0.138043090701103,0.062042668461800,-0.032536614686251,0.044356111437082,0.106386199593544,0.282400578260422,-0.069671839475632,-0.050066407769918,0.107831545174122,0.056202087551355,-0.137015759944916,0.121617406606674,0.037333302199841,-0.007534766104072) * MODEL9_texOff(vec2(1,1));
res += mat4(0.111135087907314,0.146467462182045,-0.113568477332592,0.121028609573841,-0.070274718105793,-0.171933293342590,0.103731244802475,-0.065631821751595,-0.079799450933933,-0.237236380577087,-0.009779732674360,-0.261068880558014,0.053570549935102,0.015626497566700,0.102149993181229,-0.180541694164276) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.033723335713148,-0.026785628870130,-0.085033684968948,-0.092760913074017,0.062109611928463,-0.129686117172241,-0.118701219558716,0.058798331767321,-0.261250615119934,-0.078136913478374,-0.036576993763447,-0.228185907006264,-0.039653033018112,-0.007373257074505,0.163024157285690,-0.168229147791862) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.011916981078684,-0.040062874555588,0.078775085508823,0.057204347103834,0.024957155808806,0.124958865344524,-0.141274541616440,0.017124883830547,-0.153502106666565,0.169138342142105,0.077392533421516,-0.160270214080811,0.074335247278214,-0.058211464434862,0.068601660430431,-0.191684454679489) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.107109278440475,0.281362086534500,-0.193274721503258,0.362888425588608,0.122488357126713,0.011917507275939,0.079833313822746,-0.280020147562027,-0.165803328156471,-0.310075014829636,-0.114622391760349,-0.235970288515091,0.056401301175356,-0.116060942411423,0.147436603903770,-0.036318413913250) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.169963896274567,0.269753098487854,-0.009006596170366,0.289444327354431,-0.026261121034622,0.040446359664202,-0.163225606083870,0.046788211911917,-0.087499715387821,-0.457708925008774,-0.172898054122925,-0.292033433914185,-0.370400905609131,-0.068977974355221,0.198022842407227,-0.057626415044069) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.050929754972458,0.140361800789833,0.137810111045837,0.035531915724277,-0.035092130303383,0.019190831109881,-0.127209201455116,-0.278046816587448,-0.173580557107925,0.188160374760628,-0.003338038455695,-0.264559328556061,0.053310632705688,0.045238800346851,0.078785859048367,-0.069758243858814) * MODEL10_texOff(vec2(0,1));
res += mat4(0.312781959772110,-0.158585906028748,-0.107866339385509,-0.007494790945202,0.019761178642511,-0.193256273865700,0.041508555412292,-0.048470031470060,-0.039780728518963,0.164627760648727,-0.130120545625687,-0.026787316426635,-0.051015097647905,-0.000118928102893,0.071740686893463,0.038908954709768) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.086078956723213,-0.155957683920860,-0.048113550990820,-0.056094557046890,0.038442995399237,-0.458593130111694,-0.110608719289303,-0.179542645812035,-0.169920220971107,0.131840780377388,-0.104596935212612,-0.022354366257787,0.135987967252731,0.070924520492554,0.127063855528831,-0.353259742259979) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.021142939105630,0.203885748982430,-0.090917274355888,0.203441143035889,0.159425660967827,0.262916654348373,-0.073859035968781,-0.186070770025253,-0.106280140578747,0.023889785632491,-0.079640656709671,-0.199154391884804,-0.008394654840231,0.086784042418003,-0.116180740296841,-0.209717303514481) * MODEL10_texOff(vec2(1,1));
res += mat4(0.157885715365410,-0.200017929077148,0.151206910610199,-0.131671249866486,0.217473477125168,-0.326699435710907,-0.016735175624490,0.082179300487041,0.049012199044228,-0.317243516445160,0.077871985733509,-0.211726158857346,0.150962054729462,-0.048804812133312,0.210026890039444,-0.087176233530045) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.080663643777370,0.061392448842525,-0.154276385903358,0.022208323702216,-0.176383718848228,-0.064352110028267,-0.096065096557140,0.088659800589085,0.080552354454994,-0.012162845581770,-0.119270011782646,-0.137070521712303,0.004807807505131,-0.100157544016838,0.144983485341072,-0.019488316029310) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.082166209816933,0.032580770552158,0.058057278394699,-0.044023308902979,-0.030135577544570,-0.040839418768883,-0.113703288137913,0.068374931812286,0.006095561198890,0.008092928677797,-0.129236489534378,0.000194879437913,-0.055881395936012,0.163322880864143,0.044716808944941,0.204202726483345) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.186252549290657,0.045301765203476,0.020135799422860,-0.061343800276518,-0.043170507997274,0.157997071743011,0.266643851995468,0.027258658781648,-0.018837757408619,0.087240532040596,0.167939037084579,-0.162947565317154,-0.456555932760239,-0.629119753837585,0.083501145243645,0.143233284354210) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.217495277523994,0.116243250668049,-0.677881062030792,-0.254875183105469,-0.260287821292877,0.132991507649422,-0.028033895418048,-0.377755910158157,0.022175237536430,-0.172498226165771,0.041328582912683,0.031961742788553,0.339018553495407,-0.184253945946693,0.247876763343811,-0.271291732788086) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.045684956014156,-0.212952867150307,-0.090826511383057,0.027013022452593,-0.262522727251053,-0.083852671086788,0.204826444387436,0.112844869494438,0.058395206928253,-0.271518468856812,-0.015355795621872,-0.182985424995422,-0.144372805953026,0.135170683264732,0.138924881815910,0.073778361082077) * MODEL11_texOff(vec2(0,1));
res += mat4(0.063722886145115,-0.150977358222008,0.184908777475357,-0.042345520108938,0.085830584168434,-0.003705111099407,-0.071976438164711,-0.010674933902919,-0.088391184806824,-0.138638913631439,0.160942807793617,-0.008013443090022,0.251146078109741,-0.044505536556244,-0.068817466497421,-0.051893137395382) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.038031227886677,-0.201610594987869,0.075519919395447,0.144078880548477,-0.237867012619972,0.025061814114451,-0.197699040174484,-0.035850387066603,-0.123418763279915,-0.260179728269577,-0.148386105895042,0.110612839460373,-0.094691917300224,0.163159400224686,-0.006878741551191,0.204786181449890) * MODEL11_texOff(vec2(1,0));
res += mat4(0.023862188681960,-0.097075209021568,0.070353291928768,0.093173712491989,-0.191254630684853,-0.073615960776806,0.181724429130554,0.208758831024170,-0.159273341298103,-0.077018991112709,0.157465830445290,0.248555883765221,0.030239108949900,-0.156677201390266,-0.003107305848971,0.007061231881380) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.105034917593002,0.160479724407196,-0.185603424906731,0.266018629074097,0.031591333448887,0.243122622370720,-0.088616795837879,-0.005493965465575,0.039713833481073,0.169621452689171,-0.009111788123846,-0.110942512750626,0.076687715947628,-0.076220333576202,0.059697262942791,0.018135676160455) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.064170390367508,-0.053949832916260,0.003155262675136,-0.127739787101746,0.054573997855186,-0.158652082085609,0.157833144068718,-0.189021795988083,0.025177586823702,-0.198279187083244,-0.034374520182610,-0.291698247194290,0.146283671259880,-0.162149459123611,0.010588882490993,-0.064067088067532) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.078214168548584,0.062869526445866,-0.041963201016188,0.166197791695595,0.051449030637741,0.255953907966614,0.121009148657322,0.031143682077527,0.059723384678364,0.024157391861081,0.227997228503227,0.101625040173531,0.032047901302576,0.067578844726086,0.048821907490492,0.190918967127800) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.170215636491776,-0.388994783163071,-0.227640122175217,0.128596752882004,0.291975557804108,0.004710731562227,-0.144414976239204,-0.006118756718934,0.121568553149700,0.178052291274071,0.182684600353241,-0.192658931016922,-0.006185824982822,-0.157502815127373,-0.031668256968260,-0.010843176394701) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.034386295825243,-0.318439424037933,-0.115838408470154,0.172224983572960,-0.196452051401138,0.059846822172403,0.087976217269897,-0.151168838143349,-0.062193963676691,0.162306517362595,0.153210893273354,-0.027508724480867,-0.303518414497375,-0.073205649852753,-0.355225354433060,-0.363785654306412) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.020243693143129,0.033534556627274,-0.083635576069355,0.000841600936837,-0.187411636114120,0.181448101997375,0.195772305130959,0.024777268990874,0.082748860120773,-0.135467201471329,0.178272336721420,0.180066004395485,-0.045236356556416,0.120165377855301,-0.160463139414787,0.164104074239731) * MODEL12_texOff(vec2(0,1));
res += mat4(0.077268704771996,0.170555666089058,0.098947294056416,0.119960702955723,-0.079920083284378,0.053440831601620,0.186413854360580,0.135000944137573,-0.025036584585905,-0.275313735008240,0.259396553039551,0.097833797335625,0.112408973276615,-0.050366129726171,0.012966387905180,0.054398663341999) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.229844048619270,0.068336881697178,0.214589849114418,0.043608602136374,0.019585084170103,0.025982953608036,0.036709327250719,0.113776355981827,0.004002325236797,-0.103813424706459,-0.268265873193741,-0.061588786542416,-0.172137543559074,0.116478785872459,0.167423993349075,0.166469588875771) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.023007374256849,-0.127235323190689,0.065414309501648,-0.032839197665453,0.136496111750603,-0.027716560289264,-0.117707349359989,-0.005322506185621,0.024816064164042,0.394542813301086,-0.054522555321455,0.120857954025269,0.046224895864725,-0.078232556581497,0.093428842723370,0.226851612329483) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.453420907258987,0.000815079605673,0.067054204642773,-0.127463638782501) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL5
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 3_5

vec4 hook()
{
vec4 res = vec4(0.078879095613956,0.204191371798515,0.137266412377357,0.218491166830063);
res += mat4(-0.121733516454697,-0.025407647714019,0.023271562531590,0.016935510560870,0.110067382454872,0.021650839596987,-0.102069966495037,-0.123144529759884,-0.220474883913994,-0.091705150902271,0.069156870245934,0.018645662814379,-0.069678768515587,-0.090520486235619,0.041222531348467,-0.031284533441067) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.030723107978702,-0.066887497901917,0.025023886933923,0.197759091854095,-0.019979476928711,-0.156890556216240,-0.022963993251324,-0.003497792640701,0.108652040362358,-0.087725982069969,-0.065516129136086,-0.241822287440300,-0.060564674437046,0.216192156076431,0.313614279031754,0.109896026551723) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.152372062206268,-0.016241993755102,0.059716064482927,0.201093897223473,0.105470664799213,0.037397351115942,-0.029939675703645,-0.005106426309794,0.125129729509354,0.103910334408283,-0.262238115072250,-0.113046534359455,0.201846852898598,0.086175151169300,0.188565343618393,0.115617312490940) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.244538173079491,-0.028037086129189,-0.212815314531326,0.112100556492805,0.095873862504959,0.040690340101719,-0.061793655157089,0.011706165969372,0.002375129843131,0.230396181344986,0.139784708619118,0.276609033346176,0.028943343088031,-0.028489811345935,0.060560610145330,-0.080598689615726) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.115333370864391,0.040120966732502,0.038970131427050,0.466260850429535,-0.089646883308887,0.048774972558022,-0.127127468585968,-0.085045039653778,-0.107393972575665,-0.174132958054543,0.092995040118694,0.053923040628433,0.024506518617272,-0.223327875137329,-0.267941385507584,0.331795901060104) * MODEL7_texOff(vec2(0,0));
res += mat4(0.033475447446108,0.166737899184227,-0.094341926276684,0.162886112928391,0.020010774955153,-0.042569413781166,0.099117971956730,-0.297099262475967,-0.833243012428284,0.135306388139725,0.201363444328308,-0.186776071786880,0.226798847317696,0.207224756479263,-0.135583162307739,0.130330726504326) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.034175608307123,0.074553921818733,0.007239543832839,0.145007088780403,0.098322995007038,-0.065244577825069,-0.252383738756180,0.100983470678329,-0.170313656330109,-0.005326637532562,0.137770429253578,0.092808656394482,-0.126386433839798,-0.037453800439835,-0.118019983172417,0.003609719453380) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.050169300287962,-0.177613064646721,-0.371822267770767,0.155425384640694,0.203622013330460,0.011670507490635,-0.093957215547562,0.126346871256828,-0.095782235264778,0.102569639682770,-0.154593691229820,0.124508619308472,-0.083195120096207,0.257781714200974,-0.303509473800659,0.280285179615021) * MODEL7_texOff(vec2(1,0));
res += mat4(0.010711022652686,0.030591819435358,-0.059018861502409,0.061328709125519,0.027535848319530,0.011869823560119,0.046663045883179,-0.069427721202374,-0.138458684086800,-0.264177381992340,-0.005951795261353,-0.139491781592369,0.325199514627457,-0.047261938452721,-0.164937034249306,0.012924245558679) * MODEL7_texOff(vec2(1,1));
res += mat4(0.041731588542461,0.080204218626022,0.020247355103493,-0.119090542197227,0.119938097894192,-0.013318203389645,-0.002721454249695,0.004616613499820,0.090054973959923,-0.074528276920319,0.106744669377804,-0.157613366842270,-0.145772308111191,0.014671106822789,-0.072716131806374,0.018260886892676) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.165812179446220,0.066677756607533,-0.026331571862102,-0.025345116853714,0.128069326281548,0.126467496156693,-0.061360351741314,-0.235085725784302,-0.119692921638489,0.022827044129372,-0.070103123784065,-0.008570205420256,0.353913694620132,-0.151817366480827,-0.002616112120450,-0.202727913856506) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.117319405078888,0.188338547945023,-0.138957172632217,-0.102666027843952,0.297420054674149,0.201889514923096,0.275814056396484,0.212269544601440,-0.172707617282867,0.051497656852007,0.005280757322907,0.019402883946896,-0.042281780391932,-0.159800231456757,0.042816229164600,-0.213149696588516) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.064060084521770,-0.072092033922672,0.055218070745468,-0.103206150233746,0.087738655507565,-0.007027355954051,0.021920749917626,0.095503114163876,0.157241433858871,0.098855018615723,0.014239496551454,-0.352757602930069,-0.211551755666733,-0.044906429946423,-0.164502352476120,-0.137801721692085) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.144742563366890,-0.393555402755737,0.216176941990852,-0.140293851494789,-0.495093792676926,-0.043011561036110,0.070760302245617,0.013386409729719,-0.095847718417645,0.259475082159042,0.014673839323223,-0.274313181638718,-0.032685678452253,0.004117935430259,0.064633220434189,0.048942171037197) * MODEL8_texOff(vec2(0,0));
res += mat4(0.472614616155624,0.003736913669854,0.102388873696327,-0.137752756476402,0.161734163761139,0.253598570823669,0.095327250659466,-0.175535157322884,-0.313641965389252,-0.067370727658272,0.096602700650692,0.090306445956230,-0.124519824981689,-0.071749508380890,0.072444841265678,-0.072143100202084) * MODEL8_texOff(vec2(0,1));
res += mat4(0.149869978427887,-0.055104155093431,0.020176813006401,-0.001160136191174,-0.022558184340596,0.020853724330664,0.203816115856171,0.110373027622700,-0.045492600649595,-0.025807032361627,0.044464018195868,-0.088622815907001,-0.193651854991913,0.124690450727940,-0.061202369630337,-0.170822516083717) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.162054374814034,0.050472617149353,-0.384103983640671,0.019478131085634,0.180667489767075,0.051282607018948,-0.066714763641357,0.193765372037888,0.089066460728645,0.162182807922363,-0.095217995345592,-0.362478673458099,0.192596241831779,-0.128486931324005,-0.747234225273132,-0.168291956186295) * MODEL8_texOff(vec2(1,0));
res += mat4(0.082506053149700,0.056465450674295,0.076108746230602,0.005207023583353,-0.057843040674925,0.017524616792798,0.075081788003445,-0.131933778524399,-0.130405187606812,0.026317913085222,-0.117674104869366,-0.032131224870682,0.041863020509481,0.202506378293037,-0.193684935569763,-0.069025985896587) * MODEL8_texOff(vec2(1,1));
res += mat4(0.006838072557002,-0.014237734489143,-0.211403563618660,0.014770013280213,0.107783108949661,-0.017405917868018,0.021951258182526,-0.340907782316208,0.072866402566433,-0.032475259155035,0.110356464982033,0.167894035577774,-0.259747713804245,-0.027627753093839,0.046067550778389,-0.065375030040741) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.136885896325111,0.018940104171634,0.151199653744698,0.167716383934021,0.294544696807861,-0.118317462503910,-0.116467393934727,0.056592635810375,0.017361776903272,0.030277173966169,-0.005913099739701,-0.099341951310635,-0.041932791471481,0.019147772341967,-0.098131671547890,0.166294112801552) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.280703574419022,0.095461897552013,0.083562046289444,0.113369077444077,0.128606557846069,-0.080706454813480,-0.016926944255829,-0.190082609653473,0.330591112375259,0.132751807570457,-0.247253075242043,0.105077527463436,0.135736986994743,-0.133546248078346,-0.117257632315159,-0.035321097820997) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.047067675739527,-0.235238447785378,0.204357981681824,0.181067585945129,-0.153022080659866,-0.301684468984604,-0.081714853644371,0.000809826015029,-0.305467993021011,0.038481298834085,-0.164213210344315,0.063397586345673,-0.030523436143994,-0.165071815252304,-0.002470029983670,-0.082173876464367) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.175642222166061,0.070094026625156,-0.193968519568443,-0.023567510768771,-0.627821266651154,-0.171282231807709,0.119276113808155,0.041916541755199,-0.108414851129055,-0.120977774262428,0.014994340948761,-0.179698020219803,0.184180423617363,-0.018349073827267,0.062488686293364,0.165202572941780) * MODEL9_texOff(vec2(0,0));
res += mat4(0.163632094860077,0.248291149735451,-0.175378829240799,-0.102616056799889,0.120155416429043,-0.352873116731644,0.025019986554980,-0.064056232571602,-0.351407557725906,0.008759903721511,0.462241172790527,-0.038212280720472,-0.325406014919281,-0.297626018524170,0.281497329473495,0.239058569073677) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.039121024310589,0.177450507879257,-0.148981839418411,-0.035470440983772,-0.046067882329226,-0.010067675262690,-0.338220596313477,-0.192332699894905,-0.219561189413071,-0.043082304298878,-0.317856699228287,0.135118007659912,-0.048937622457743,-0.001706493902020,-0.118815615773201,0.001208117464557) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.038808874785900,0.047950644046068,0.005109957884997,-0.100533179938793,-0.071762695908546,-0.264668673276901,-0.253090083599091,-0.024642392992973,0.042912401258945,0.054734729230404,-0.140405967831612,0.022917477414012,0.119145311415195,0.067191854119301,-0.244642630219460,0.181903779506683) * MODEL9_texOff(vec2(1,0));
res += mat4(0.472598195075989,0.073673985898495,0.132137805223465,0.092638537287712,-0.011784904636443,-0.062890879809856,-0.172196641564369,-0.137728169560432,0.005305227357894,0.028280828148127,-0.087939493358135,0.290721774101257,-0.322659134864807,0.062113184481859,-0.174270316958427,0.271721094846725) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.036847364157438,0.155651777982712,0.026848517358303,-0.159730270504951,0.047285817563534,0.015407310798764,-0.060464050620794,-0.083023354411125,-0.071886979043484,0.093723691999912,-0.111248493194580,0.027146736159921,0.151616275310516,-0.034930709749460,-0.072040542960167,0.117686785757542) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.174752831459045,0.047128219157457,0.371479600667953,0.062733680009842,0.076575137674809,0.051931630820036,-0.060544282197952,-0.090271741151810,0.085311263799667,0.030850032344460,-0.087583035230637,-0.084329172968864,-0.003284604521468,-0.035693667829037,-0.022414252161980,0.085730262100697) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.060056556016207,0.042959962040186,0.249326154589653,0.136251077055931,-0.011492795310915,0.037640992552042,0.154286444187164,-0.011974456720054,-0.129898935556412,0.043908923864365,-0.020127272233367,0.006039137020707,-0.044726829975843,-0.108711890876293,-0.040646523237228,0.095149300992489) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.087096691131592,0.264948457479477,0.081009477376938,-0.170441403985023,0.251868486404419,0.151484042406082,0.048336725682020,-0.056519255042076,-0.277240455150604,0.142956838011742,0.023761931806803,0.218083083629608,0.135565459728241,0.053788032382727,0.110448345541954,0.020271643996239) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.052493140101433,-0.055959992110729,-0.159377619624138,-0.348929196596146,-0.355989634990692,0.224869191646576,0.208805561065674,0.038957145065069,-0.060721088200808,-0.442335486412048,-0.142816573381424,0.222618132829666,0.039163205772638,-0.083878517150879,-0.331102848052979,-0.169568374752998) * MODEL10_texOff(vec2(0,0));
res += mat4(0.201380044221878,0.048885498195887,-0.062675185501575,-0.255347818136215,0.256843745708466,0.269415885210037,0.069868296384811,-0.019018268212676,-0.174828052520752,0.067648053169250,-0.068269439041615,0.055705837905407,-0.504424393177032,0.033478230237961,0.067490421235561,0.016413768753409) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.014386598020792,0.020243512466550,0.210570290684700,0.034345768392086,0.109890021383762,-0.005011894274503,-0.143699422478676,-0.025847313925624,0.024247204884887,0.039311800152063,0.105755455791950,-0.030647641047835,0.041595887392759,-0.002508763456717,-0.042719785124063,0.068552099168301) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.266695708036423,0.001868032501079,0.002256624167785,0.010015826672316,-0.020567711442709,-0.215922504663467,0.201543688774109,0.117745086550713,-0.166698902845383,-0.020191378891468,-0.091437444090843,-0.092108368873596,0.018965093418956,0.073385752737522,-0.130716621875763,-0.072144314646721) * MODEL10_texOff(vec2(1,0));
res += mat4(0.033371843397617,0.065193787217140,0.186458989977837,-0.121767714619637,0.129877135157585,0.212631493806839,0.272681355476379,-0.255160093307495,-0.041438251733780,-0.057711653411388,-0.080275453627110,-0.051217734813690,-0.222316980361938,0.079694546759129,0.015363410115242,0.272251605987549) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.067568764090538,0.019349256530404,-0.012895072810352,-0.045281324535608,-0.102348990738392,-0.071835033595562,0.300526469945908,-0.166886031627655,0.000123809135403,0.000072950460890,0.062475055456161,0.017377061769366,0.179900765419006,-0.186037674546242,0.073397770524025,0.014206593856215) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.088853545486927,0.037246607244015,0.016258168965578,-0.187308639287949,0.253245174884796,-0.092748001217842,-0.085859611630440,-0.227782860398293,0.090368725359440,0.022425564005971,0.166150271892548,0.200106382369995,0.396592348814011,0.041323762387037,-0.074786700308323,-0.301885098218918) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.206914842128754,0.009570022113621,-0.136834263801575,-0.068084701895714,0.123854406177998,-0.018499238416553,0.107231162488461,0.158545404672623,-0.044732566922903,0.011484487913549,0.000058830555645,-0.034303158521652,-0.245225876569748,-0.171208843588829,0.011327188462019,-0.021718963980675) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.155048310756683,0.194712683558464,-0.162164971232414,-0.080813713371754,0.194964841008186,-0.009736336767673,-0.137590289115906,0.071311376988888,0.224930137395859,0.027284288778901,0.155297815799713,0.021271541714668,-0.179283961653709,-0.186759576201439,0.040224798023701,0.248836249113083) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.479458063840866,0.476545006036758,0.000780278583989,-0.076228253543377,0.102050431072712,-0.047456406056881,0.123464025557041,-0.106591828167439,0.063116766512394,-0.049367364495993,0.299748390913010,0.159556686878204,0.444701582193375,0.060847833752632,-0.192178145051003,-0.218277081847191) * MODEL11_texOff(vec2(0,0));
res += mat4(0.070949055254459,-0.082537025213242,0.126172348856926,-0.007266921456903,0.333024173974991,-0.123341873288155,0.005701501388103,0.096180267632008,0.017708962783217,0.055342677980661,0.020278908312321,0.085680425167084,-0.493704110383987,-0.091490775346756,-0.116013489663601,0.089665047824383) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.089632347226143,0.041222102940083,-0.206918507814407,0.000305496971123,0.059580296278000,0.007603979669511,0.078700147569180,0.156791865825653,-0.349732726812363,-0.050118673592806,0.008960030041635,0.142710939049721,0.308784872293472,-0.088912092149258,-0.669901967048645,0.160626813769341) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.052384980022907,-0.177502170205116,0.246504098176956,0.050651226192713,-0.386887341737747,0.087952658534050,0.161629125475883,-0.052359782159328,-0.323385566473007,-0.143072381615639,0.057950727641582,0.196206420660019,0.107892490923405,0.187742456793785,-0.035235486924648,-0.439501613378525) * MODEL11_texOff(vec2(1,0));
res += mat4(0.097379349172115,-0.036094445735216,0.004980457946658,0.152643725275993,0.014627873897552,-0.101947180926800,-0.114970892667770,0.163099706172943,0.167466521263123,-0.102021791040897,-0.127795189619064,0.288010746240616,-0.153099015355110,-0.085215806961060,-0.165016889572144,-0.232216417789459) * MODEL11_texOff(vec2(1,1));
res += mat4(0.218321308493614,-0.003062538104132,-0.242201685905457,-0.122555442154408,-0.169484674930573,-0.061004538089037,-0.057823810726404,0.068739198148251,-0.118780165910721,0.051014132797718,-0.011912864632905,0.007230167742819,0.070295974612236,0.027850924059749,0.010621408000588,0.034825608134270) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.167852193117142,0.076553523540497,-0.095301374793053,0.234035253524780,0.163884013891220,-0.038082372397184,0.302001923322678,0.093086130917072,-0.084817864000797,0.021253867074847,0.194232851266861,-0.416900992393494,0.046412635594606,-0.084792375564575,0.160812333226204,0.103968143463135) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.043973729014397,-0.113106407225132,-0.030418479815125,-0.036712959408760,-0.176439478993416,-0.070626743137836,0.259977459907532,-0.382445544004440,0.014334865845740,-0.087068371474743,-0.086280725896358,-0.171719267964363,0.006141569465399,-0.154863476753235,0.025821287184954,0.024191597476602) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.152755737304688,-0.160366266965866,0.235825836658478,0.047268599271774,0.007040531840175,-0.155350908637047,0.018291877582669,-0.079002581536770,-0.032324846833944,-0.130708858370781,-0.092758513987064,0.067618034780025,-0.105369754135609,0.192498713731766,-0.158379346132278,-0.011525081470609) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.114770181477070,-0.121170021593571,-0.031638730317354,0.083360239863396,-0.096157036721706,-0.132605165243149,-0.049130473285913,0.000818337081000,-0.442554056644440,0.135883182287216,-0.026946127414703,0.042816150933504,-0.290106922388077,0.390676736831665,-0.392863571643829,0.039897371083498) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.249796882271767,-0.136073678731918,0.014186615124345,-0.075386717915535,0.100925795733929,0.056855518370867,-0.222101151943207,0.052833907306194,-0.117087326943874,-0.101518087089062,-0.037041764706373,-0.016888776794076,-0.007258473895490,-0.274993062019348,0.006210352294147,0.039666764438152) * MODEL12_texOff(vec2(0,1));
res += mat4(0.090618930757046,0.014933838509023,-0.071139700710773,0.066886179149151,-0.126652881503105,0.042360998690128,0.075201377272606,-0.252716064453125,-0.133487060666084,-0.058618251234293,-0.091188035905361,0.224210590124130,0.078566826879978,-0.043621182441711,0.027886917814612,0.086762048304081) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.008275447413325,-0.038517203181982,0.258381932973862,0.049664855003357,-0.005269597750157,-0.249714717268944,-0.167725846171379,0.096411950886250,-0.395153015851974,-0.198361888527870,-0.020369015634060,-0.415254205465317,-0.053596481680870,-0.020147511735559,0.176999092102051,0.095166087150574) * MODEL12_texOff(vec2(1,0));
res += mat4(0.051249928772449,0.005759464576840,-0.092181451618671,0.014575277455151,0.197751045227051,-0.062201287597418,-0.136369809508324,-0.175057381391525,-0.039930921047926,0.095012225210667,-0.154542371630669,-0.038026046007872,-0.097159296274185,-0.160371378064156,-0.068751737475395,0.134779125452042) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.107443250715733,0.560368895530701,-0.249273940920830,0.059210728853941) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL6
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 3_6

vec4 hook()
{
vec4 res = vec4(0.012821123003960,-0.022845007479191,-0.093457512557507,0.007448677904904);
res += mat4(0.056824028491974,0.115659698843956,-0.068156130611897,-0.070856884121895,-0.114479966461658,0.113218128681183,0.008094504475594,0.202610313892365,-0.110658094286919,-0.060463976114988,-0.010789483785629,0.069518573582172,0.086367271840572,0.145939946174622,-0.149483263492584,-0.172578454017639) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.232118889689445,-0.120643347501755,-0.002015363657847,0.023377735167742,-0.283621907234192,0.189725905656815,0.105083748698235,-0.309124022722244,0.077565744519234,0.385771185159683,0.107270091772079,0.044628977775574,0.332581222057343,-0.409030944108963,-0.057320147752762,0.363634318113327) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.050051413476467,-0.126292392611504,0.036433134227991,0.020389001816511,-0.032052360475063,0.017025293782353,0.063296101987362,-0.014673620462418,-0.148611024022102,0.000499543617480,0.232156425714493,0.004616627469659,0.171453833580017,-0.166467413306236,-0.146518543362617,-0.046987846493721) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.052493073046207,0.084730580449104,-0.138238698244095,-0.021145410835743,0.006868697702885,-0.089485011994839,0.031994134187698,0.155626311898232,-0.367160618305206,-0.409288525581360,0.077190592885017,0.332605719566345,-0.244869083166122,-0.062496915459633,-0.144876673817635,-0.015772692859173) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.287256836891174,-0.298936754465103,0.090668775141239,0.056873988360167,-0.045722134411335,0.041114527732134,0.077211722731590,0.136488020420074,0.292276054620743,0.618273675441742,-0.205119326710701,-0.026294397190213,0.052512567490339,0.080765560269356,0.317879527807236,-0.218253940343857) * MODEL7_texOff(vec2(0,0));
res += mat4(0.106124825775623,-0.052404329180717,0.097439296543598,-0.168225526809692,-0.093759603798389,-0.041178885847330,-0.000847548653837,0.057046130299568,-0.035897191613913,-0.233704745769501,0.153835341334343,0.113912023603916,-0.085910461843014,-0.127742052078247,0.160180538892746,0.006091578863561) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.050308268517256,-0.086308658123016,-0.042385641485453,0.108590334653854,0.062556974589825,0.012549017556012,0.009326754137874,-0.046887319535017,0.121433436870575,0.045518908649683,0.130086198449135,0.108832508325577,0.157010868191719,0.105394959449768,-0.084262944757938,0.132920086383820) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.053997654467821,0.081584565341473,-0.155814126133919,-0.128532677888870,-0.128983169794083,-0.039390273392200,-0.143889278173447,0.331671953201294,0.021221453323960,0.170262426137924,-0.122046507894993,-0.102338232100010,-0.189648509025574,-0.228802546858788,0.113428987562656,-0.149929702281952) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.108646683394909,-0.032554492354393,-0.053462356328964,-0.268252223730087,-0.018041992560029,-0.001373100792989,-0.103196471929550,0.112276665866375,0.066807053983212,0.085198223590851,0.086723327636719,-0.013795158825815,-0.149339139461517,-0.137355521321297,0.183172985911369,0.067827574908733) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.089237570762634,-0.119387328624725,0.005484019406140,0.089946515858173,-0.124458357691765,-0.112534247338772,0.063602291047573,0.075035303831100,0.088667668402195,0.181934431195259,-0.145819306373596,0.103041619062424,0.088550388813019,-0.008589852601290,0.019053006544709,-0.043084383010864) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.050921123474836,0.239883378148079,0.186313778162003,-0.091986089944839,0.099596224725246,0.069363646209240,0.213180616497993,0.051467332988977,0.063163362443447,-0.049820490181446,-0.032978028059006,0.245415851473808,0.042181160300970,0.304065018892288,-0.296435177326202,0.141931593418121) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.070788070559502,0.046931497752666,0.116738602519035,-0.117343507707119,0.299895197153091,0.129551112651825,-0.084598667919636,0.232277363538742,-0.071134880185127,0.057583969086409,-0.062761873006821,0.163645863533020,0.017038267105818,0.141877233982086,-0.155779302120209,0.032536786049604) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.192317187786102,-0.093596562743187,-0.042479217052460,-0.152789071202278,-0.092428199946880,-0.179704546928406,-0.004558315966278,0.069834016263485,0.140289172530174,-0.073451988399029,-0.145663961768150,0.090832792222500,-0.062390059232712,0.010916088707745,0.008300462737679,-0.119827337563038) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.651053845882416,0.178776115179062,0.308801054954529,0.255896002054214,0.274237036705017,-0.137897685170174,0.051173426210880,0.345527887344360,0.012939299456775,-0.138529404997826,-0.138117969036102,0.203939586877823,0.110937640070915,0.258671909570694,0.108231641352177,0.127615317702293) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.307805210351944,0.000819857174065,-0.005598556250334,-0.314861685037613,-0.209065601229668,-0.249530553817749,0.056557707488537,-0.347573846578598,0.236291572451591,0.251536428928375,-0.078836843371391,0.289835870265961,-0.018936669453979,0.143766343593597,0.030516996979713,-0.099069587886333) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.027259794995189,0.064294740557671,-0.102804102003574,-0.106783114373684,-0.049573726952076,-0.156315311789513,0.081765674054623,0.008045111782849,0.074188798666000,0.218646019697189,-0.154927685856819,-0.029725871980190,-0.126514777541161,-0.175524324178696,0.086123257875443,0.045281462371349) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.179524496197701,0.218833386898041,0.083555281162262,0.246972575783730,0.029277842491865,-0.100100181996822,0.031404934823513,-0.192455112934113,0.009413502179086,0.069531641900539,-0.048976659774780,0.042112533003092,0.246420994400978,0.279255062341690,-0.217865422368050,-0.216860100626945) * MODEL8_texOff(vec2(1,0));
res += mat4(0.006372091360390,0.077932246029377,-0.062224190682173,0.039897643029690,-0.042375892400742,-0.023122422397137,-0.041685350239277,0.034154947847128,0.085202813148499,0.165442883968353,-0.012284720316529,0.149766519665718,0.029626199975610,-0.001543483464047,-0.013381962664425,0.165654331445694) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.108714774250984,0.042612563818693,0.082943268120289,-0.007572636939585,0.190330922603607,0.161471456289291,-0.261103510856628,-0.002974547212943,0.051977504044771,-0.066694594919682,-0.150573745369911,0.132358223199844,0.108080014586449,-0.055394101887941,-0.030568853020668,-0.070839360356331) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.153433591127396,-0.045658543705940,0.013988114893436,-0.033486917614937,-0.244246706366539,0.327955037355423,-0.090731307864189,-0.146833375096321,-0.093279056251049,0.087620534002781,0.073024600744247,-0.119983360171318,-0.009033437818289,-0.043670758605003,0.085629358887672,-0.069701910018921) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.057245746254921,-0.068577088415623,-0.116518437862396,0.139230176806450,-0.056044012308121,0.222087264060974,-0.203877270221710,0.009656618349254,-0.245030745863914,-0.122286759316921,0.229188174009323,-0.174454495310783,-0.080156959593296,0.080414049327374,0.031955994665623,-0.157853350043297) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.202500224113464,-0.083782829344273,-0.113810971379280,-0.058147203177214,0.256405502557755,0.400466024875641,-0.165097326040268,-0.154094263911247,0.153619453310966,0.201389089226723,-0.070267312228680,-0.006094710901380,0.322299361228943,0.187053054571152,-0.104554638266563,-0.317772477865219) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.071245320141315,-0.149497270584106,0.074536196887493,-0.091236405074596,0.008087533526123,-0.414588898420334,-0.170132741332054,0.160751894116402,-0.233684390783310,-0.135270625352859,-0.279867440462112,0.056577216833830,-0.150192797183990,-0.200529009103775,-0.074034191668034,0.192586481571198) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.342942178249359,0.107338160276413,0.264029294252396,-0.383388757705688,-0.172422707080841,0.018674004822969,0.084313437342644,-0.063707657158375,-0.033848885446787,-0.150006130337715,0.003314927220345,-0.152726933360100,0.282297849655151,0.285483598709106,-0.165137648582458,0.097689971327782) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.021103464066982,0.047520879656076,0.067685678601265,-0.000868801260367,0.028019582852721,0.345775425434113,-0.205659359693527,-0.063763670623302,0.072215519845486,0.028252005577087,0.138882890343666,-0.033169511705637,0.018961904570460,0.092798881232738,-0.000929769361392,-0.229946523904800) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.055279202759266,0.032979734241962,-0.026518762111664,-0.200284004211426,-0.129476875066757,0.156061291694641,0.008679819293320,0.171698421239853,-0.166609942913055,-0.209754899144173,0.102405264973640,-0.169754013419151,0.053115833550692,-0.182136729359627,-0.044623404741287,0.330363482236862) * MODEL9_texOff(vec2(1,0));
res += mat4(0.149619609117508,-0.120232790708542,0.114807806909084,0.314996302127838,-0.000067248198320,0.053126018494368,-0.251913160085678,-0.081436112523079,-0.257922977209091,-0.085743546485901,0.166104063391685,-0.050968199968338,0.439875453710556,0.136551469564438,-0.120642744004726,0.063014157116413) * MODEL9_texOff(vec2(1,1));
res += mat4(0.079881019890308,0.033650953322649,-0.054511722177267,0.037932965904474,0.027463521808386,-0.158348783850670,0.061774816364050,-0.051984250545502,-0.059641540050507,-0.069793291389942,0.305729478597641,0.041613273322582,0.033716190606356,0.120912835001945,0.121275015175343,0.016187103465199) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.163897380232811,0.105707846581936,-0.058165784925222,0.138740032911301,-0.026515584439039,0.005825242027640,-0.025372071191669,0.036533579230309,-0.217632681131363,-0.079299397766590,0.324500650167465,-0.137602925300598,0.103438414633274,-0.040258787572384,-0.054031066596508,-0.062004648149014) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.134031876921654,-0.035966880619526,-0.115861885249615,0.161778450012207,0.183395862579346,-0.035208139568567,0.035710483789444,-0.010389490053058,0.023010442033410,0.017785638570786,0.206920176744461,-0.143056765198708,0.043544050306082,0.018799146637321,-0.051457546651363,0.091304637491703) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.116674177348614,0.051392797380686,0.142827913165092,0.035763490945101,-0.251447170972824,-0.149598538875580,0.218533486127853,-0.015898628160357,-0.275665223598480,-0.290329813957214,0.275768369436264,0.251723885536194,-0.162355080246925,-0.149858102202415,-0.107063375413418,0.132765263319016) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.063841246068478,0.286874711513519,0.038603283464909,-0.085276350378990,-0.071075275540352,-0.266239941120148,0.237102165818214,-0.242353588342667,-0.353219658136368,0.101743713021278,0.046000037342310,-0.227760702371597,-0.096236526966095,-0.377197831869125,0.319260120391846,-0.188983485102654) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.052824527025223,0.010412889532745,-0.088275007903576,-0.161517933011055,0.041140142828226,-0.049315650016069,0.152120083570480,-0.023161599412560,0.190397933125496,-0.068148665130138,0.179717615246773,-0.136224284768105,0.249903485178947,0.055463254451752,-0.142364352941513,0.274228185415268) * MODEL10_texOff(vec2(0,1));
res += mat4(0.094439461827278,-0.068014994263649,0.113078638911247,0.011392074637115,-0.079376928508282,-0.108581312000751,0.016356579959393,0.109392948448658,0.069470576941967,-0.066660769283772,0.307067841291428,0.106891013681889,-0.059532016515732,0.114458672702312,-0.164924770593643,0.085632048547268) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.185187920928001,-0.113968752324581,-0.012190852314234,-0.134841978549957,0.121481895446777,0.271043002605438,0.106459364295006,-0.058926172554493,-0.154174342751503,0.018135817721486,-0.003850602777675,0.032565988600254,0.181002646684647,0.143511921167374,-0.049151975661516,-0.044618848711252) * MODEL10_texOff(vec2(1,0));
res += mat4(0.212652444839478,0.124556086957455,-0.213382378220558,-0.026864290237427,0.034248858690262,-0.032172102481127,0.044865418225527,0.164822116494179,0.053193490952253,-0.098891057074070,0.062613375484943,-0.123082451522350,0.228855565190315,0.051644209772348,-0.035268720239401,-0.055430449545383) * MODEL10_texOff(vec2(1,1));
res += mat4(0.089478522539139,-0.080063514411449,0.000008543984222,-0.007336385548115,0.158708393573761,-0.058155149221420,-0.229303717613220,0.034923352301121,0.014560492709279,-0.124374754726887,0.106882087886333,0.049085568636656,-0.255792051553726,-0.035895198583603,-0.235922172665596,-0.145135775208473) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.011153551749885,-0.288612961769104,0.154122605919838,0.173025369644165,-0.076834432780743,0.137662604451180,-0.081626564264297,-0.124247223138809,0.199911728501320,0.072317279875278,-0.159721821546555,0.257386595010757,-0.089570559561253,-0.006820051465183,-0.354825913906097,-0.237312912940979) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.115028254687786,-0.152318269014359,0.030177133157849,-0.154872521758080,0.198300853371620,0.109525360167027,-0.041238628327847,-0.187597766518593,0.131212085485458,-0.084437057375908,-0.045971743762493,0.040990844368935,0.042236275970936,0.091171152889729,-0.164799392223358,-0.022209383547306) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.144803464412689,-0.251478224992752,0.290666937828064,-0.285597324371338,-0.495056897401810,0.168902650475502,0.242655888199806,-0.026724180206656,0.038449686020613,0.010929857380688,0.061252214014530,0.044859655201435,-0.402986049652100,-0.274703800678253,0.149502664804459,-0.051357708871365) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.454628437757492,0.156484335660934,-0.152795687317848,0.083949163556099,-0.234200671315193,0.109090529382229,0.008070114068687,0.048942409455776,0.135368391871452,0.075335316359997,-0.028851214796305,0.141854375600815,-0.318693190813065,-0.053736161440611,-0.370086044073105,-0.455280810594559) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.137125313282013,-0.214554622769356,0.149134665727615,-0.056013729423285,-0.162016361951828,0.016241248697042,0.190692991018295,-0.426949173212051,-0.082249917089939,-0.152809232473373,-0.079022288322449,-0.045376371592283,0.269304066896439,0.284891963005066,-0.226429596543312,0.052224583923817) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.158507242798805,-0.068873062729836,-0.011701956391335,-0.060148291289806,-0.018695505335927,-0.020332373678684,0.058191150426865,0.177985683083534,-0.007273612543941,-0.052673831582069,-0.000894614495337,0.061035338789225,0.112843610346317,0.089629635214806,-0.098729439079762,0.022647665813565) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.027874758467078,-0.012712620198727,0.020016040652990,-0.192926660180092,0.037795543670654,-0.045218866318464,0.156179547309875,0.011403692886233,-0.067050263285637,0.125162661075592,0.129076048731804,-0.189332425594330,0.014825880527496,0.080189526081085,-0.110613368451595,-0.003740681800991) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.089273750782013,-0.152264773845673,-0.082033239305019,-0.024973366409540,-0.219406709074974,-0.069447115063667,0.310909003019333,-0.156549811363220,-0.427017122507095,-0.196496754884720,0.128244638442993,-0.120135948061943,0.061590392142534,0.019654044881463,-0.062690570950508,-0.038751699030399) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.028080753982067,0.181294932961464,0.322559803724289,-0.054452851414680,0.072262771427631,0.132542222738266,0.201230511069298,-0.126820802688599,0.146193325519562,0.049221444875002,0.052209489047527,-0.090794853866100,0.014735659584403,0.004901125561446,-0.110754169523716,-0.006689062807709) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.025852147489786,0.027680434286594,0.081308618187904,-0.144111692905426,-0.238393917679787,-0.187788456678391,0.017771966755390,0.126905158162117,0.187526389956474,-0.174428924918175,-0.118167325854301,0.126850321888924,0.293979465961456,-0.088697955012321,-0.109668195247650,0.069865263998508) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.064146108925343,0.083768777549267,-0.160881802439690,-0.024338746443391,0.147291481494904,-0.017973452806473,-0.190170645713806,-0.306503444910049,-0.423811882734299,0.139863520860672,0.244305744767189,-0.439091175794601,-0.033138446509838,0.052025619894266,-0.160024791955948,0.096271581947803) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.182422101497650,0.009402363561094,-0.445401698350906,0.176556587219238,-0.064111828804016,0.103712916374207,-0.030065856873989,-0.190062865614891,-0.320176005363464,0.119940258562565,0.243860438466072,-0.153458803892136,-0.159351810812950,-0.151726812124252,0.087129287421703,-0.038658551871777) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.014198075048625,-0.324611425399780,-0.215413033962250,0.142809569835663,-0.260611563920975,-0.233564734458923,0.122992858290672,0.259548574686050,-0.037553183734417,0.074649170041084,0.091634050011635,-0.201670706272125,-0.207873657345772,-0.498169183731079,0.682646095752716,-0.278216570615768) * MODEL12_texOff(vec2(0,0));
res += mat4(0.185702517628670,0.168007269501686,-0.098497413098812,0.051657374948263,0.045601110905409,-0.005197902675718,-0.070214770734310,-0.241052433848381,-0.248266682028770,-0.029400777071714,0.152949362993240,-0.140200167894363,0.150239899754524,0.060768716037273,-0.219940811395645,0.016955001279712) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.012803746387362,0.046053357422352,0.093269549310207,0.209514334797859,-0.615888476371765,-0.030408972874284,0.009041563607752,0.028560599312186,-0.480278313159943,-0.236772313714027,0.331990033388138,-0.141709014773369,0.062196485698223,0.020422331988811,-0.044363550841808,0.158525764942169) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.053161803632975,0.154842361807823,0.001233600545675,-0.121084250509739,-0.160732373595238,0.053747721016407,0.130456939339638,0.009583571925759,0.044143494218588,0.152517780661583,-0.024984398856759,-0.007199594751000,-0.283414423465729,-0.028080845251679,0.204092621803284,-0.166922181844711) * MODEL12_texOff(vec2(1,0));
res += mat4(0.028462681919336,0.021644318476319,-0.000992750981823,0.153594106435776,-0.096489332616329,-0.210476681590080,-0.081363268196583,-0.019375706091523,-0.065592385828495,0.033492069691420,0.134378209710121,-0.020039601251483,0.018565196543932,0.054213974624872,-0.207203134894371,0.139683261513710) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.053617764264345,-0.070453874766827,0.062177289277315,-0.162177711725235) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 4_1

vec4 hook()
{
vec4 res = vec4(-0.196079447865486,-0.006504512391984,-0.199899435043335,-0.376111775636673);
res += mat4(-0.005574726033956,0.086611375212669,-0.051442191004753,0.107906349003315,-0.000251452409429,-0.009086019359529,-0.097523197531700,0.024249043315649,0.043440308421850,0.093790069222450,-0.056183747947216,0.001257177558728,0.019351212307811,-0.097054801881313,0.010079511441290,0.044019442051649) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.047899857163429,0.060133624821901,-0.134668633341789,0.236229971051216,-0.046369642019272,0.064012877643108,-0.071217641234398,-0.021145654842257,0.064264737069607,-0.092578075826168,-0.070603825151920,-0.142792299389839,-0.045352663844824,0.202624052762985,-0.142015546560287,0.074829965829849) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.060099478811026,-0.089974641799927,-0.242281973361969,-0.100767023861408,0.355474591255188,-0.005152463912964,0.312886178493500,0.060781687498093,-0.093898981809616,-0.008567175827920,-0.140619084239006,-0.096744351089001,0.002548002405092,-0.005398747976869,0.056843109428883,0.096605196595192) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.069922693073750,0.099630303680897,-0.079854257404804,0.278922170400620,0.173305004835129,0.187600314617157,0.088211722671986,0.073421254754066,0.011974519118667,0.149223133921623,-0.057719167321920,-0.051463879644871,0.057103369385004,-0.170095026493073,0.076780714094639,-0.003398174652830) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.008312534540892,-0.084495730698109,-0.049324750900269,0.278598397970200,-0.156934782862663,-0.304053485393524,0.047321118414402,-0.155156835913658,0.203565031290054,-0.064123935997486,0.192211538553238,-0.029224645346403,0.102479174733162,0.346126765012741,0.132458657026291,0.223311126232147) * MODEL1_texOff(vec2(0,0));
res += mat4(0.147054910659790,0.079274497926235,0.253519415855408,-0.407267153263092,0.033169325441122,-0.394387990236282,0.192152217030525,-0.058991353958845,-0.158188268542290,-0.119510844349861,-0.158714815974236,-0.032256882637739,-0.013235275633633,-0.084804594516754,-0.010314860381186,0.175657793879509) * MODEL1_texOff(vec2(0,1));
res += mat4(0.041871201246977,-0.045776337385178,0.057336769998074,-0.012436151504517,0.420312196016312,0.153847560286522,0.295415133237839,0.132879436016083,-0.010036968626082,0.034518379718065,0.017646854743361,-0.066174328327179,0.081005491316319,-0.224375635385513,0.071068480610847,-0.148285150527954) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.014693808741868,-0.199379846453667,0.092583864927292,-0.116515457630157,0.118569754064083,-0.217615976929665,0.123546093702316,0.000204674666747,-0.072486497461796,-0.003452407894656,-0.050554290413857,0.029954830184579,0.034951370209455,0.334654390811920,0.020672013983130,0.215246751904488) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.044916253536940,0.044297467917204,-0.022453038021922,0.043902207165956,-0.003509256290272,0.099078245460987,-0.117101646959782,0.071059621870518,-0.013735388405621,0.031790163367987,0.015541343949735,-0.061853583902121,0.092026740312576,-0.155583292245865,0.043893612921238,0.104822605848312) * MODEL1_texOff(vec2(1,1));
res += mat4(0.036491561681032,0.028427569195628,-0.039175599813461,0.064719989895821,0.009631310589612,0.094202332198620,0.024580316618085,0.024025000631809,0.075140111148357,0.149274006485939,0.008447282947600,0.103516489267349,-0.114624001085758,0.022763827815652,-0.047611847519875,-0.040697015821934) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.130134493112564,-0.209369659423828,-0.015055901370943,-0.192091077566147,0.020097799599171,-0.234821185469627,-0.111078031361103,0.188800707459450,0.005789356306195,-0.181869015097618,-0.047670442610979,-0.046652555465698,0.013531024567783,-0.015512743033469,0.179483458399773,0.103604316711426) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.124939538538456,0.036237791180611,0.068587563931942,0.015039425343275,-0.094444133341312,0.088310174643993,-0.054933402687311,0.021545849740505,-0.081555686891079,-0.117309674620628,-0.150509864091873,0.093245871365070,-0.131337985396385,0.337437838315964,-0.046768173575401,-0.017720552161336) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.188768789172173,-0.216890439391136,-0.124987609684467,-0.082207560539246,0.042833428829908,-0.020837280899286,-0.140330091118813,0.071401022374630,-0.051915057003498,-0.094449244439602,-0.074427396059036,-0.081310659646988,0.049023520201445,0.151914477348328,0.006756720598787,0.086567983031273) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.042691644281149,-0.217448115348816,-0.018094848841429,-0.397728115320206,-0.203616783022881,0.110152773559093,-0.233670309185982,-0.163507223129272,0.051504090428352,-0.132204979658127,-0.118419535458088,-0.080837354063988,-0.378497749567032,-0.060424111783504,-0.254598379135132,-0.069511905312538) * MODEL2_texOff(vec2(0,0));
res += mat4(0.019752718508244,-0.280882567167282,0.096529595553875,-0.064324527978897,-0.039397705346346,-0.093088723719120,0.016594143584371,0.153949841856956,0.174401775002480,0.053440801799297,0.042543601244688,0.003223520936444,0.035141676664352,0.108985565602779,-0.115744128823280,-0.100391909480095) * MODEL2_texOff(vec2(0,1));
res += mat4(0.068042509257793,-0.177481323480606,0.008654281497002,-0.258139371871948,-0.157226443290710,-0.225605919957161,0.160481452941895,-0.051903370767832,-0.039181496948004,-0.283438861370087,0.117230519652367,-0.251978129148483,0.104241304099560,0.017374273389578,0.064247496426105,-0.025513170287013) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.088012658059597,-0.328568011522293,-0.000454000080936,-0.347729235887527,-0.370443195104599,0.431801974773407,-0.040258094668388,0.033651906996965,0.114435233175755,-0.284468233585358,0.238086834549904,0.050052270293236,-0.022463046014309,-0.215130910277367,-0.040920320898294,-0.082721643149853) * MODEL2_texOff(vec2(1,0));
res += mat4(0.085207492113113,-0.156722426414490,-0.019588831812143,-0.173624783754349,-0.055963404476643,-0.162973523139954,0.014010203070939,0.117205999791622,-0.174787148833275,-0.156459361314774,-0.135297745466232,0.146955475211143,-0.064625501632690,0.042706951498985,-0.054325345903635,-0.096883833408356) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.020665744319558,-0.131647393107414,-0.016855143010616,-0.079717308282852,-0.041997175663710,-0.080839410424232,0.071794241666794,-0.022592479363084,-0.131231456995010,-0.114285171031952,-0.082741387188435,-0.109351709485054,-0.025800282135606,-0.007222199812531,0.033194839954376,-0.039723210036755) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.008292334154248,0.018010908737779,-0.237290099263191,-0.145725384354591,-0.137827277183533,-0.189026638865471,0.307551920413971,-0.315558850765228,-0.078410647809505,-0.033117815852165,0.040232755243778,-0.181461453437805,-0.272801905870438,0.193001091480255,-0.252434790134430,-0.011754130013287) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.037034973502159,-0.030950464308262,0.154469490051270,0.135119661688805,0.052069652825594,0.069625742733479,0.152667775750160,0.079877607524395,0.008921228349209,-0.006871277000755,0.200109392404556,0.118244789540768,-0.241955831646919,-0.027191290631890,-0.068805247545242,0.063726268708706) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.097839780151844,0.015991671010852,0.099154107272625,-0.031639929860830,0.378914833068848,-0.119851678609848,0.262489646673203,-0.201646670699120,0.235834300518036,0.021273700520396,0.100897677242756,-0.046304315328598,-0.057498630136251,-0.077034443616867,0.000590739597101,-0.080224759876728) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.056797020137310,-0.088239692151546,0.302397429943085,0.190388768911362,0.503028988838196,0.156871557235718,0.338102340698242,0.066609315574169,0.273922681808472,0.148460298776627,0.165602117776871,-0.235759541392326,0.221729576587677,0.027852479368448,0.594481706619263,0.047559000551701) * MODEL3_texOff(vec2(0,0));
res += mat4(0.102601304650307,0.193555295467377,0.185278281569481,-0.015800300985575,0.241910740733147,-0.058383438736200,-0.047576483339071,0.096932508051395,-0.091691240668297,-0.151009827852249,-0.193231090903282,0.158587500452995,0.107155025005341,0.021679911762476,0.098096504807472,-0.054745513945818) * MODEL3_texOff(vec2(0,1));
res += mat4(0.180719032883644,0.117969274520874,0.075870707631111,0.040747806429863,-0.086811393499374,0.022203801199794,-0.023138079792261,0.076938949525356,-0.151804730296135,0.064527146518230,-0.133402794599533,0.100224323570728,0.010064993053675,0.015569510869682,-0.096062272787094,-0.047061529010534) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.082886621356010,0.056420940905809,0.093043006956577,0.065192013978958,-0.137083470821381,-0.143082037568092,-0.060358945280313,-0.095119178295135,-0.186636283993721,0.035160318017006,-0.226607874035835,-0.075598366558552,0.082149483263493,0.096512302756310,-0.020449137315154,-0.081846281886101) * MODEL3_texOff(vec2(1,0));
res += mat4(0.076972678303719,0.233989804983139,0.066740542650223,0.149467214941978,-0.020498627796769,-0.012604732066393,-0.009442496113479,-0.037955198436975,-0.007126028183848,-0.112567953765392,0.017848264425993,-0.025997573509812,0.124414093792439,0.019268728792667,0.038432035595179,-0.089049167931080) * MODEL3_texOff(vec2(1,1));
res += mat4(0.069085597991943,0.059455972164869,0.041391417384148,-0.024209149181843,0.116055071353912,0.059881906956434,0.036269851028919,-0.035336021333933,-0.033459149301052,-0.013963850215077,-0.049835339188576,-0.041783794760704,0.044800188392401,0.077082611620426,0.017173036932945,0.006263176444918) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.224681347608566,-0.335079014301300,0.046651445329189,-0.172862559556961,0.244605809450150,-0.223630890250206,0.098078608512878,-0.061534699052572,0.185056135058403,-0.044104699045420,0.195408478379250,-0.052708480507135,0.104217782616615,-0.009010900743306,0.065767891705036,-0.036422163248062) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.088196344673634,0.042270995676517,-0.104542970657349,-0.106484040617943,-0.191178366541862,0.112107828259468,0.012095914222300,0.086763821542263,0.092190764844418,0.058242801576853,0.112842567265034,-0.043331097811460,0.072892583906651,-0.009586883708835,-0.103911153972149,0.002224094700068) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.045924022793770,0.141126856207848,0.190884828567505,0.142486408352852,-0.124780260026455,0.033495590090752,0.052444174885750,-0.025305598974228,-0.147755131125450,0.280480742454529,-0.025936329737306,0.153599530458450,-0.075152240693569,0.237939849495888,0.051635935902596,0.111870624125004) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.208538547158241,-0.123280145227909,0.018512241542339,-0.379010140895844,0.183581545948982,-0.428651034832001,0.673975825309753,-0.047973051667213,-0.731825530529022,-0.449548274278641,0.085696846246719,-0.489021718502045,-0.159536167979240,-0.413655728101730,-0.294547796249390,-0.395522624254227) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.019550168886781,0.174760520458221,-0.063616335391998,0.034923281520605,0.245855972170830,-0.094739094376564,-0.062372252345085,0.200286626815796,-0.204641237854958,0.049657240509987,0.059589143842459,0.101033188402653,-0.111301109194756,-0.393713206052780,0.084555804729462,0.223840519785881) * MODEL4_texOff(vec2(0,1));
res += mat4(0.006808751262724,-0.041219025850296,-0.072826646268368,0.004904291592538,0.040108606219292,0.003044561017305,-0.041000083088875,-0.075913824141026,-0.064788170158863,0.227996617555618,-0.001651244354434,0.131109431385994,-0.095503680408001,0.077034242451191,-0.079562783241272,0.052236337214708) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.073909789323807,0.066321253776550,-0.175215706229210,-0.130414724349976,-0.081077955663204,0.009622697718441,-0.097165465354919,0.173634663224220,-0.335324823856354,-0.256921827793121,-0.122381374239922,0.026873158290982,-0.375472247600555,-0.351324528455734,-0.014923917129636,-0.128979831933975) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.145955547690392,-0.074401691555977,-0.088852733373642,-0.100183144211769,0.119096800684929,-0.104968003928661,0.165818035602570,-0.011980756185949,0.135911390185356,0.053362391889095,0.008082253858447,-0.051456894725561,-0.120086662471294,-0.420368909835815,0.036843512207270,-0.056809294968843) * MODEL4_texOff(vec2(1,1));
res += mat4(0.022282667458057,0.131358906626701,-0.066621817648411,0.067306391894817,-0.100801154971123,-0.063973106443882,-0.201630696654320,-0.040223419666290,0.087578110396862,0.058184608817101,-0.084126122295856,0.153866276144981,0.096636973321438,0.053719267249107,-0.083528757095337,-0.140816152095795) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.129164323210716,-0.045694287866354,-0.124122932553291,0.109128847718239,-0.020513165742159,-0.086654461920261,0.105742081999779,-0.001530942390673,0.251203626394272,-0.269886136054993,0.252251923084259,-0.009792058728635,0.104001075029373,-0.287552893161774,-0.053916960954666,0.002193478401750) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.088385209441185,0.376572549343109,-0.064150489866734,0.015825942158699,0.157022818922997,-0.024019302800298,0.036425512284040,-0.049175620079041,0.229196012020111,-0.045680258423090,-0.026755135506392,-0.149031490087509,-0.062744416296482,0.079784899950027,0.005552852991968,-0.038116104900837) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.016243511810899,0.054083958268166,-0.166222929954529,0.036670845001936,-0.207618728280067,-0.021288719028234,0.049178246408701,-0.050868310034275,-0.087790273129940,0.042044848203659,-0.072751984000206,0.108436904847622,-0.166894018650055,-0.014224792830646,-0.095086626708508,-0.005268185399473) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.033379226922989,0.033810436725616,-0.080772757530212,-0.352403551340103,-0.304078876972198,0.095224149525166,-0.144548818469048,0.541351139545441,-0.190449282526970,0.031413219869137,-0.211972311139107,0.022528490051627,-0.194524154067039,-0.108277745544910,-0.075421378016472,-0.034793913364410) * MODEL5_texOff(vec2(0,0));
res += mat4(0.006312250159681,0.316829085350037,-0.289377212524414,-0.031544961035252,-0.123471803963184,-0.030295506119728,0.152910530567169,0.113848157227039,-0.033429220318794,0.037655197083950,-0.087480567395687,-0.136066511273384,-0.063153870403767,-0.078816831111908,-0.226372763514519,0.015960128977895) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.163442164659500,0.134570419788361,-0.106659427285194,-0.017489770427346,0.064494401216507,-0.031017668545246,0.029401566833258,-0.064872473478317,0.153164684772491,-0.024525471031666,0.038898114115000,-0.054600134491920,-0.053493376821280,0.114946812391281,0.024974014610052,0.048859704285860) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.155680835247040,-0.199036762118340,0.003913410473615,-0.077185258269310,0.021349025890231,0.125605061650276,-0.039852499961853,0.162216901779175,0.273122668266296,-0.052041810005903,0.195904016494751,0.027578657492995,-0.249015778303146,-0.117845371365547,-0.136379614472389,-0.134444311261177) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.059935983270407,0.226610705256462,0.034576673060656,0.036830738186836,0.023439925163984,-0.066662043333054,-0.030709460377693,-0.018081288784742,0.045764278620481,0.027548240497708,-0.061885174363852,0.035097643733025,-0.132217869162560,-0.185176312923431,-0.058943491429090,-0.045387405902147) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.113044418394566,-0.111472457647324,-0.012231948785484,0.054143685847521,-0.124101348221302,-0.123856738209724,-0.013185148127377,-0.031498681753874,0.010809806175530,0.017279457300901,0.142533272504807,0.094962112605572,0.119709409773350,0.204995900392532,0.024144388735294,0.134161099791527) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.070483334362507,0.136041179299355,0.166248247027397,0.075957596302032,-0.257393658161163,0.055867966264486,-0.011253529228270,-0.134123817086220,0.113836176693439,0.021280029788613,-0.121422298252583,-0.139895528554916,0.102246545255184,0.084137365221977,-0.036052200943232,0.206867545843124) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.048246912658215,-0.011166951619089,-0.009632514789701,-0.076814576983452,0.056059665977955,0.084541417658329,0.040006961673498,-0.011882150545716,0.051389109343290,-0.036557111889124,-0.129248037934303,0.091455742716789,0.031151147559285,0.097974412143230,-0.069529354572296,-0.045182123780251) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.036686141043901,-0.110459931194782,-0.174008324742317,-0.219253480434418,0.187972530722618,-0.413447290658951,-0.044723346829414,-0.017382862046361,-0.048114147037268,-0.113471969962120,-0.049755528569221,-0.044277850538492,-0.235724061727524,0.289126366376877,-0.287277162075043,0.169827193021774) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.067712232470512,0.320008814334869,-0.350895792245865,0.254042088985443,0.123743563890457,0.261695653200150,-0.424545973539352,-0.722188353538513,-0.653056919574738,-0.396448016166687,-0.335240066051483,-0.654272615909576,-0.029908839613199,0.086271151900291,-0.114704288542271,0.277774900197983) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.227813944220543,-0.163871318101883,-0.171310260891914,0.340862125158310,0.006974998395890,-0.088889658451080,-0.148409858345985,-0.033091265708208,-0.187287315726280,0.308908015489578,0.053272757679224,0.030933016911149,0.075331784784794,0.174712106585503,0.064124643802643,-0.186189919710159) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.135882779955864,-0.015949876978993,-0.052024953067303,-0.003970950841904,0.014065971598029,-0.267007827758789,-0.011064312420785,-0.149886459112167,-0.007172297220677,-0.071199864149094,0.031801406294107,0.033166266977787,0.119775630533695,0.246426329016685,0.142997235059738,0.114044778048992) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.047077666968107,0.203064411878586,0.052633237093687,0.343311905860901,0.028453096747398,-0.106838382780552,0.104100555181503,-0.288337230682373,0.155323535203934,-0.164132103323936,0.070547901093960,-0.097463048994541,-0.117952421307564,0.178603515028954,0.005016672890633,0.014793793670833) * MODEL6_texOff(vec2(1,0));
res += mat4(0.042806949466467,-0.169838666915894,0.042294401675463,0.088167577981949,0.072995118796825,0.043471079319715,-0.016211617738008,-0.037703242152929,-0.037570767104626,0.065880268812180,-0.063504599034786,0.057273022830486,-0.050696868449450,0.214208438992500,-0.007384740281850,-0.061401404440403) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.000279913248960,-0.019984154030681,-0.014723308384418,-0.017560021951795) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 4_2

vec4 hook()
{
vec4 res = vec4(-0.126841068267822,-0.294598609209061,-0.112825602293015,-0.215820983052254);
res += mat4(0.076895169913769,0.126531630754471,-0.068502262234688,-0.039216838777065,-0.004824183415622,-0.110122114419937,-0.222622409462929,0.017370849847794,-0.014335682615638,0.150618731975555,-0.076803460717201,0.023253882303834,-0.019359592348337,-0.008134420961142,-0.002690555294976,-0.009576655924320) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.175126329064369,0.000331175513566,0.011403497308493,0.137397855520248,-0.147822186350822,-0.068293556571007,0.140670135617256,-0.124469317495823,0.169108882546425,-0.032511696219444,-0.340038925409317,0.099761396646500,0.074077181518078,-0.142795771360397,0.120409764349461,0.041393686085939) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.216855555772781,-0.070196524262428,0.041499529033899,-0.015893366187811,-0.030074819922447,-0.017782485112548,-0.103726983070374,0.031907279044390,-0.032891925424337,0.052425473928452,-0.098254576325417,-0.103617019951344,-0.025837751105428,-0.011071744374931,-0.028022618964314,0.101658195257187) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.010380642488599,0.064232029020786,0.053570151329041,-0.170772209763527,-0.207487240433693,-0.032232008874416,-0.085434749722481,0.289221256971359,0.009952431544662,0.028772473335266,0.151552751660347,-0.146570026874542,-0.017410030588508,0.003312038257718,0.078255683183670,0.080470249056816) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.734407782554626,0.008804758079350,0.016967829316854,-0.268715977668762,-0.167992219328880,-0.247967526316643,0.059093456715345,0.272811919450760,-0.164023369550705,-0.337268739938736,-0.112254455685616,-0.264718860387802,0.210122719407082,0.129907026886940,0.050093278288841,0.103536695241928) * MODEL1_texOff(vec2(0,0));
res += mat4(0.293614149093628,0.143363729119301,-0.144267991185188,-0.099082544445992,0.113719455897808,0.004409343469888,0.029189841821790,0.244067892432213,-0.174813225865364,-0.005397987551987,0.024723464623094,0.009066726081073,-0.010400467552245,0.037032783031464,0.122499786317348,0.106983572244644) * MODEL1_texOff(vec2(0,1));
res += mat4(0.074800714850426,-0.049949835985899,-0.074645906686783,-0.006623985245824,0.082554012537003,-0.259115248918533,-0.442379504442215,-0.221744224429131,-0.057122539728880,-0.023610835894942,-0.082770764827728,-0.035547822713852,0.022299496456981,0.019273705780506,-0.005016786511987,0.059205435216427) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.001459592604078,-0.048685174435377,-0.024632165208459,0.066108435392380,0.066908538341522,-0.241169974207878,-0.239261209964752,0.126241877675056,-0.129083991050720,0.036808621138334,0.002355672186241,-0.084864735603333,-0.096610799431801,-0.006297247018665,-0.122990541160107,0.054012380540371) * MODEL1_texOff(vec2(1,0));
res += mat4(0.121727280318737,0.107261620461941,0.047917816787958,-0.002269361168146,-0.098324060440063,-0.217015087604523,-0.070076182484627,0.142021968960762,0.017864542081952,-0.061567433178425,-0.051775164902210,0.004119545221329,0.004190839827061,-0.004805093631148,-0.132504791021347,-0.009628286585212) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.000911781273317,-0.019417211413383,0.069387517869473,-0.158479273319244,0.034586455672979,-0.360284268856049,-0.245528385043144,-0.039278198033571,0.003952652215958,0.154360622167587,-0.081165239214897,-0.073708638548851,0.093305058777332,-0.017412014305592,0.006133773364127,0.067516744136810) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.083616748452187,0.074725434184074,-0.015303106047213,-0.098412208259106,-0.101019799709320,-0.286593228578568,-0.145858079195023,-0.195148631930351,0.096135713160038,0.089707836508751,0.024363098666072,-0.003186640096828,-0.078109450638294,0.132179930806160,0.001669258577749,-0.183188721537590) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.004088967107236,0.038535203784704,0.071751154959202,-0.000100019933598,-0.024875279515982,0.068400472402573,-0.087151959538460,-0.102193057537079,-0.036212377250195,-0.071167871356010,-0.084483683109283,-0.008142534643412,0.081952862441540,0.009657008573413,-0.178842619061470,0.051430296152830) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.171487241983414,0.195542722940445,0.111000813543797,0.078086309134960,-0.229797452688217,-0.258364439010620,-0.231672272086143,-0.190006926655769,-0.171371072530746,-0.053372982889414,-0.032369408756495,0.015368582680821,0.087080977857113,0.011957003735006,-0.029185874387622,0.090315163135529) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.195589169859886,0.125026494264603,0.227374181151390,0.123864941298962,-0.086190037429333,-0.218065530061722,-0.236067160964012,-0.276855736970901,-0.092962682247162,-0.406753301620483,0.082580029964447,-0.031141312792897,-0.035441163927317,-0.161109805107117,-0.036873701959848,-0.135176643729210) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.074603021144867,-0.087993890047073,0.120019048452377,0.071309708058834,-0.062175720930099,-0.064942926168442,-0.061334241181612,-0.099766358733177,0.135488331317902,0.014351169578731,-0.085742093622684,-0.110417030751705,-0.011619603261352,-0.122486807405949,0.025160485878587,-0.000151426458615) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.004037622828037,0.059620305895805,-0.062607266008854,0.002115908777341,-0.061820920556784,0.141068220138550,0.142952203750610,0.113985374569893,0.187919571995735,-0.169167205691338,-0.062304895371199,-0.095891773700714,0.027518568560481,-0.076632604002953,-0.119108982384205,-0.146331548690796) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.040258169174194,0.092877767980099,-0.000430335057899,-0.015717370435596,-0.159773960709572,-0.147577494382858,0.146099910140038,0.090696528553963,-0.145276531577110,-0.222286611795425,0.009411425329745,0.030871598049998,0.026658115908504,0.028909057378769,0.053088322281837,0.010386343114078) * MODEL2_texOff(vec2(1,0));
res += mat4(0.033613938838243,0.187232822179794,-0.020262544974685,-0.012809533625841,0.072544820606709,-0.072894670069218,0.053757868707180,0.083232812583447,-0.004151850007474,-0.030642932280898,0.152387201786041,0.153342336416245,0.054436147212982,0.038380943238735,0.078629828989506,-0.086179099977016) * MODEL2_texOff(vec2(1,1));
res += mat4(0.094195887446404,-0.074209176003933,0.114685028791428,-0.145060390233994,0.123951651155949,0.136380836367607,0.186385616660118,0.032747711986303,0.049642324447632,-0.097742065787315,0.318787336349487,-0.059515003114939,-0.085840426385403,0.039931192994118,0.087399356067181,0.001626859186217) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.105224095284939,0.200773805379868,0.241238564252853,-0.166490033268929,0.036739394068718,-0.004986737389117,0.092582754790783,0.025484452024102,-0.069900728762150,0.063294179737568,0.370718508958817,-0.327090442180634,0.094877518713474,-0.133906483650208,0.018100824207067,0.359563022851944) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.056708045303822,0.133869811892509,0.007408420555294,0.041845828294754,-0.007765080779791,-0.010045265778899,0.181195348501205,0.212592527270317,-0.012017731554806,0.228015214204788,0.166440412402153,-0.046718575060368,-0.094714328646660,-0.154062032699585,0.052572712302208,0.057335216552019) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.142172798514366,0.152724385261536,0.021862635388970,0.227723225951195,0.174472153186798,0.040063172578812,-0.193524435162544,0.014878699555993,0.046216625720263,0.062364749610424,-0.101752959191799,0.067922323942184,0.108748748898506,-0.031696017831564,0.312312453985214,0.134395077824593) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.210750967264175,0.108795426785946,0.193224698305130,0.424013286828995,0.319519817829132,0.073620103299618,-0.266220241785049,-0.403767734766006,0.164154201745987,-0.279681533575058,-0.399649441242218,0.203440114855766,-0.181265220046043,0.070975571870804,0.360308229923248,0.314323872327805) * MODEL3_texOff(vec2(0,0));
res += mat4(0.048665583133698,-0.117134921252728,0.320270419120789,0.451884776353836,0.099859282374382,0.074125662446022,-0.097662776708603,-0.275176763534546,-0.150819674134254,-0.032576095312834,0.061952747404575,0.043554745614529,-0.086871907114983,0.148918479681015,0.049176190048456,0.178579196333885) * MODEL3_texOff(vec2(0,1));
res += mat4(0.071929946541786,0.066788002848625,0.033612668514252,-0.046497322618961,0.085252195596695,0.092033393681049,0.046013440936804,0.017214851453900,0.007651516236365,0.075750239193439,0.103542290627956,0.094178929924965,-0.018356624990702,0.012557217851281,0.027066247537732,0.099692247807980) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.273391366004944,-0.005089408718050,-0.074679642915726,-0.052430652081966,0.187660038471222,0.292472571134567,0.256827384233475,0.103181466460228,0.175975367426872,0.280190408229828,0.308823764324188,0.097721092402935,-0.135471269488335,0.178266569972038,0.014297384768724,0.130067154765129) * MODEL3_texOff(vec2(1,0));
res += mat4(0.219780415296555,0.122210890054703,-0.226306244730949,-0.032207738608122,0.098134294152260,0.067486815154552,0.071656741201878,-0.071810796856880,0.062243942171335,-0.015626188367605,0.071929797530174,-0.008456790819764,0.020518183708191,0.144311025738716,0.094197250902653,0.037227258086205) * MODEL3_texOff(vec2(1,1));
res += mat4(0.016027698293328,-0.034843776375055,-0.102617703378201,0.053187873214483,0.008182578720152,-0.120794817805290,-0.004425846505910,-0.146641537547112,0.006724481470883,-0.008701945655048,-0.394374936819077,-0.097889453172684,0.002959198318422,0.009909120388329,0.088376872241497,0.068895153701305) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.094253815710545,-0.128931507468224,-0.174910396337509,-0.293694436550140,0.031752690672874,-0.005547465290874,0.193347275257111,0.011583425104618,-0.186404407024384,0.220832228660583,-0.265118300914764,-0.525240898132324,0.051894452422857,0.092800967395306,-0.302692741155624,-0.010726205073297) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.004142695572227,-0.044128324836493,-0.105981729924679,-0.154479846358299,0.035167135298252,-0.187528908252716,-0.063093416392803,0.226211324334145,0.112390458583832,0.135258942842484,-0.035678971558809,-0.051894720643759,-0.000506893848069,-0.136888787150383,-0.016138203442097,0.014589954167604) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.052002772688866,0.126827284693718,0.055162157863379,0.033538091927767,-0.083680965006351,-0.080318145453930,0.116673998534679,-0.034660730510950,-0.029003296047449,-0.063933432102203,-0.117924422025681,-0.101198948919773,0.031241146847606,-0.037586688995361,0.136792570352554,-0.118187859654427) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.011775181628764,-0.089690119028091,0.094487570226192,0.253323376178741,-0.137921124696732,-0.163609609007835,-0.274412095546722,-0.271099418401718,0.069606356322765,-0.289418280124664,-0.223987370729446,-0.174195080995560,-0.234039783477783,-0.368541181087494,-0.121637180447578,-0.481645435094833) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.029921712353826,-0.194414556026459,-0.295577883720398,-0.243949934840202,-0.077043630182743,0.030698491260409,-0.168537795543671,-0.105497732758522,-0.064356125891209,-0.112710818648338,-0.036552991718054,0.181810766458511,-0.025880757719278,0.014925499446690,-0.153246223926544,-0.207306206226349) * MODEL4_texOff(vec2(0,1));
res += mat4(0.132820218801498,0.074183888733387,0.039920207113028,0.043418109416962,0.055542763322592,0.091445945203304,0.047535188496113,0.002459567738697,-0.095442183315754,0.051104657351971,0.155946642160416,0.084523253142834,0.088162779808044,0.086583800613880,0.016300113871694,0.135221198201180) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.007135673891753,0.040662743151188,0.134031161665916,0.111562199890614,-0.196196824312210,0.151837110519409,0.293765842914581,-0.175784930586815,-0.002675107680261,-0.009329902008176,0.106536723673344,0.138915583491325,0.005940571427345,0.109114520251751,0.132023870944977,0.196709901094437) * MODEL4_texOff(vec2(1,0));
res += mat4(0.034181464463472,0.114418983459473,0.089005939662457,0.064419932663441,-0.009698709473014,-0.078661784529686,-0.032700031995773,-0.084951259195805,0.036042720079422,0.075412429869175,-0.007851014845073,-0.065316468477249,-0.068233549594879,-0.139274820685387,0.031678855419159,0.035941455513239) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.058838170021772,-0.153101280331612,-0.309936046600342,-0.024699611589313,-0.057889394462109,-0.180466607213020,0.171364948153496,-0.119775936007500,0.003818346187472,0.059357460588217,0.044148612767458,0.194202780723572,0.004682808183134,-0.160188883543015,-0.207979217171669,-0.223085001111031) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.122874893248081,-0.102106407284737,-0.288030385971069,0.019178695976734,-0.090320587158203,0.011252194643021,0.027017364278436,-0.150599613785744,0.019182698801160,0.289456307888031,0.040412761271000,0.151225745677948,-0.012728116475046,0.107957132160664,-0.146712824702263,-0.117517411708832) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.049259550869465,-0.094762377440929,-0.048057295382023,0.028460273519158,0.092208929359913,0.149604737758636,0.083290368318558,-0.072155646979809,0.117367751896381,0.031735476106405,0.090598389506340,0.032412536442280,0.013932719826698,-0.026627359911799,0.000595546269324,-0.083530038595200) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.134708210825920,-0.157081395387650,-0.067112684249878,-0.298760622739792,-0.095698989927769,-0.007605443708599,-0.195306718349457,0.010657534003258,-0.196613565087318,0.098483487963676,0.034988928586245,0.047745753079653,-0.142355278134346,0.181321889162064,0.010633661411703,-0.069694474339485) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.145001739263535,0.026690997183323,-0.082970224320889,-0.193601876497269,-0.399692475795746,0.341156750917435,0.213441893458366,-0.123885728418827,0.127133816480637,0.515511274337769,0.112945675849915,0.090088345110416,0.123312912881374,-0.186533227562904,-0.100282937288284,-0.214095398783684) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.025073792785406,0.083680912852287,0.003498954465613,-0.038818236440420,-0.128628000617027,0.007366664241999,0.083687297999859,-0.063237033784389,0.014946017414331,-0.000693941896316,-0.019199166446924,-0.095472611486912,-0.031464681029320,0.037193566560745,-0.091232270002365,-0.288785070180893) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.143257349729538,0.057159092277288,0.098398946225643,0.151805371046066,-0.055841285735369,-0.132268637418747,-0.105116300284863,0.015225422568619,-0.065480381250381,-0.106708273291588,-0.152917146682739,-0.156163901090622,0.095808841288090,-0.079451158642769,-0.062262710183859,0.039168760180473) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.010323087684810,-0.112851403653622,0.079053774476051,0.041051525622606,0.045215137302876,0.054675947874784,0.134463027119637,0.146078079938889,-0.024199955165386,-0.315498709678650,-0.391829580068588,-0.169507130980492,-0.077115416526794,0.060458105057478,0.146944180130959,0.097089886665344) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.074292309582233,-0.097427859902382,-0.032056216150522,0.059451114386320,-0.028830906376243,-0.073193393647671,0.042174782603979,0.082303121685982,-0.014081946574152,-0.121928066015244,-0.139295458793640,-0.064978949725628,-0.011635813862085,-0.022955935448408,0.046598479151726,0.133380666375160) * MODEL5_texOff(vec2(1,1));
res += mat4(0.050604533404112,-0.014205886982381,-0.057338163256645,-0.021976094692945,-0.042322650551796,-0.038530346006155,0.076878391206264,-0.013262133114040,-0.065683066844940,-0.035536438226700,0.064557537436485,0.020031118765473,0.030345510691404,-0.080584287643433,0.015049424022436,-0.072218522429466) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.076932027935982,0.070072166621685,0.096406631171703,-0.119915530085564,0.021887900307775,-0.155225723981857,-0.239621698856354,-0.081918910145760,-0.146983429789543,0.000657551223412,-0.442984759807587,-0.034974567592144,-0.021474715322256,0.133492916822433,0.075357154011726,0.063543818891048) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.138985827565193,-0.065024405717850,-0.046344015747309,-0.057459168136120,0.047338373959064,-0.062452781945467,0.069278992712498,-0.085649810731411,-0.033133171498775,0.091768234968185,0.065985195338726,-0.041039563715458,-0.095838129520416,-0.007466394454241,0.034861836582422,0.068843513727188) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.148225635290146,-0.146632865071297,-0.164698690176010,0.004775051493198,-0.111732475459576,0.002357027260587,0.078047417104244,0.145106062293053,-0.033416368067265,0.001919667236507,0.007585515733808,-0.027943005785346,-0.080949701368809,0.108680844306946,0.006102175451815,-0.006934957113117) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.596168220043182,0.195002764463425,0.052111174911261,-0.038640186190605,-0.139867052435875,-0.369524657726288,-0.003337176749483,-0.298901617527008,-0.111611083149910,-0.158140853047371,0.150990769267082,-0.248181715607643,-0.124840192496777,-0.214015707373619,-0.020038565620780,-0.105610944330692) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.279034405946732,0.086356647312641,0.035478394478559,0.126004323363304,-0.172120854258537,-0.098863951861858,0.222785577178001,-0.026148723438382,0.117421068251133,-0.129346266388893,-0.095466047525406,0.088386714458466,0.051196869462729,-0.059369944036007,-0.051372423768044,-0.054191522300243) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.153055042028427,0.036000363528728,0.076296612620354,0.140566870570183,0.056426644325256,-0.093780994415283,-0.114113241434097,-0.122277922928333,0.031255166977644,0.152921080589294,0.128221735358238,0.124495416879654,-0.029758663848042,-0.024999298155308,-0.058260206133127,-0.026505025103688) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.015481801703572,-0.224595472216606,-0.156509041786194,0.064143933355808,-0.164337158203125,-0.160770222544670,-0.166324660181999,-0.157999739050865,0.137828484177589,-0.144336462020874,-0.051370963454247,0.032682888209820,0.024750782176852,-0.006942652165890,0.123198218643665,-0.040919579565525) * MODEL6_texOff(vec2(1,0));
res += mat4(0.065009854733944,-0.020937979221344,-0.016726331785321,-0.088665515184402,-0.111527189612389,-0.074328042566776,-0.034983541816473,0.040096949785948,0.022240307182074,0.123178094625473,0.027780145406723,0.037907999008894,0.006776457652450,0.048351351171732,0.066934712231159,0.084605254232883) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.014788556843996,-0.016857754439116,-0.017494091764092,-0.032225042581558) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 4_3

vec4 hook()
{
vec4 res = vec4(0.008048496209085,0.014919267967343,-0.104263499379158,-0.163756251335144);
res += mat4(0.132919162511826,-0.033857315778732,-0.210285291075706,-0.077000804245472,-0.084436625242233,-0.006647345144302,0.064022973179817,0.116488419473171,0.016885479912162,0.040229421108961,-0.121617689728737,-0.053820386528969,-0.076268449425697,0.010998841375113,0.075569115579128,0.003567458596081) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.402461707592010,0.040019348263741,0.085637688636780,0.035797011107206,0.310127139091492,-0.110541589558125,-0.226733177900314,-0.119483180344105,-0.260069876909256,0.069437660276890,0.183362364768982,0.213853821158409,-0.017033226788044,-0.013235905207694,-0.071752980351448,-0.026835042983294) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.051193375140429,0.027836432680488,-0.108443446457386,0.040697980672121,-0.032634697854519,-0.019620714709163,0.121394865214825,-0.017801586538553,0.151965647935867,0.056358959525824,0.045437067747116,-0.052233461290598,-0.044151805341244,-0.009462332352996,0.114730447530746,0.050648447126150) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.058763056993484,-0.003274971153587,-0.101553671061993,-0.046188306063414,0.094047658145428,0.002504237927496,-0.169540181756020,-0.100095354020596,-0.048337440937757,0.059717603027821,-0.199538588523865,-0.062819153070450,-0.036887366324663,0.073364138603210,0.255965352058411,0.139070525765419) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.010040890425444,0.154316261410713,0.150697469711304,0.027250457555056,-0.272457540035248,0.008205678313971,0.138933986425400,-0.014425144530833,0.401634633541107,-0.004733284935355,0.473872989416122,0.307807803153992,0.041432578116655,-0.016045087948442,-0.340640187263489,-0.016296098008752) * MODEL1_texOff(vec2(0,0));
res += mat4(0.212302818894386,0.073693715035915,0.087092526257038,0.110690869390965,0.104279972612858,-0.032048489898443,-0.224582940340042,-0.042739622294903,-0.047098711133003,0.038538102060556,0.139072746038437,0.018100932240486,-0.096705272793770,-0.007727098185569,0.210097447037697,0.055563289672136) * MODEL1_texOff(vec2(0,1));
res += mat4(0.026851041242480,0.013265432789922,-0.020450670272112,-0.035454317927361,0.173526033759117,0.025751717388630,0.027036415413022,0.048729106783867,-0.051538079977036,0.018370999023318,-0.117391102015972,0.005365497898310,-0.039907615631819,0.037998661398888,0.213404908776283,0.019496118649840) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.042030189186335,0.010616389103234,-0.037246402353048,-0.217027470469475,0.302895426750183,0.064742162823677,-0.025835717096925,-0.132169231772423,-0.084355942904949,0.002363237785175,0.130795121192932,0.179954484105110,-0.009001628495753,0.018683554604650,-0.062154877930880,0.105922296643257) * MODEL1_texOff(vec2(1,0));
res += mat4(0.010356629267335,-0.017428783699870,0.006183556281030,0.190644159913063,-0.022539986297488,0.045612979680300,0.032003540545702,-0.005638767033815,0.036560673266649,-0.020755985751748,-0.071966223418713,-0.107671640813351,0.011907642707229,0.002303034532815,0.109738357365131,-0.090568646788597) * MODEL1_texOff(vec2(1,1));
res += mat4(0.111815027892590,-0.037777166813612,-0.050309438258410,-0.029352741315961,-0.047507569193840,0.019241882488132,-0.124519407749176,-0.094675704836845,0.017109364271164,-0.034166816622019,-0.061615593731403,0.010178964585066,0.013679448515177,-0.035250831395388,0.037132322788239,0.006724084261805) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.056036345660686,-0.006346858106554,0.045073326677084,-0.103078261017799,0.055314693599939,0.004366428125650,0.139435172080994,-0.002724064979702,-0.130248650908470,0.009854149073362,0.217246741056442,0.082588240504265,0.159235075116158,0.012636729516089,-0.046885460615158,0.080362111330032) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.046571336686611,0.000169458042365,-0.067006215453148,-0.024656465277076,-0.024905188009143,0.000206721641007,-0.091762199997902,-0.028583480045199,0.007862564176321,-0.012510080821812,-0.168822363018990,-0.141216337680817,-0.105941571295261,0.061315149068832,0.037548687309027,0.253353744745255) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.015533738769591,-0.047210469841957,0.068721406161785,-0.030313758179545,-0.060261819511652,0.000189088721527,0.189405009150505,0.145112022757530,0.063485890626907,0.051669489592314,0.052229721099138,-0.005364321637899,0.082158893346786,-0.022637469694018,-0.155265137553215,-0.122417360544205) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.054855816066265,-0.020433301106095,-0.034428350627422,-0.173110768198967,-0.018482675775886,-0.017040545120835,-0.232630908489227,-0.140710115432739,0.015757933259010,0.036492947489023,0.010344127193093,-0.132653564214706,-0.072749584913254,-0.021999441087246,0.396135091781616,0.669799447059631) * MODEL2_texOff(vec2(0,0));
res += mat4(0.027064900845289,0.002775304485112,-0.252939134836197,0.011065017431974,-0.089901655912399,-0.019104493781924,0.199965596199036,0.009375056251884,0.076464124023914,-0.005301137454808,-0.183623969554901,-0.125884681940079,0.070512436330318,0.108364209532738,0.129536733031273,0.352962017059326) * MODEL2_texOff(vec2(0,1));
res += mat4(0.051998171955347,-0.025585638359189,-0.019024131819606,-0.090472146868706,0.004518344067037,-0.011181849986315,0.191540166735649,0.003482730593532,0.119078285992146,0.053139921277761,0.056789420545101,0.057514954358339,-0.005244425963610,0.036058142781258,-0.094660833477974,-0.078557103872299) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.050580471754074,0.002666875952855,-0.259267061948776,-0.059491697698832,-0.105643711984158,0.005708528682590,-0.040169078856707,0.178681686520576,0.047952283173800,-0.019300237298012,-0.208794593811035,-0.307262003421783,0.118002317845821,-0.036284785717726,-0.010994524694979,-0.100636884570122) * MODEL2_texOff(vec2(1,0));
res += mat4(0.093964271247387,-0.001836420735344,-0.573748648166656,0.015663936734200,0.036291066557169,-0.016114620491862,0.024381741881371,-0.027809211984277,0.007202825974673,-0.040647879242897,-0.132808372378349,-0.084044046700001,0.036262553185225,0.003359883325174,0.154525935649872,0.046192221343517) * MODEL2_texOff(vec2(1,1));
res += mat4(0.007932241074741,0.023587163537741,0.143603682518005,0.063336648046970,-0.095646388828754,0.065814808011055,0.069205336272717,0.043557196855545,0.055626019835472,-0.048461209982634,0.034393522888422,0.017227420583367,-0.068785049021244,0.046120665967464,-0.011209397576749,0.018425779417157) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.058761820197105,-0.012260975316167,-0.093698680400848,-0.067268058657646,0.079500913619995,0.112877324223518,-0.202973946928978,-0.051425345242023,-0.227404713630676,-0.232677951455116,-0.282986670732498,-0.109355255961418,-0.167142838239670,0.073844887316227,0.091668248176575,0.084382742643356) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.027038406580687,-0.054208479821682,-0.091842681169510,0.203739091753960,-0.015236534178257,0.002435546368361,0.072509974241257,-0.042141087353230,-0.040689017623663,-0.219983562827110,0.087172247469425,-0.056445587426424,0.040079135447741,0.028548162430525,0.072041362524033,0.025160362944007) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.025958523154259,0.025763565674424,0.058670222759247,0.018441021442413,0.055111382156610,0.032988224178553,0.105421841144562,0.056191772222519,-0.078051529824734,-0.133918359875679,-0.103493399918079,-0.107342191040516,-0.000309149094392,-0.019743151962757,0.043388783931732,0.080807760357857) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.146852150559425,0.046065796166658,0.003871467895806,-0.074996896088123,0.064276225864887,0.103617511689663,-0.251429200172424,-0.073961570858955,0.115593038499355,0.568699002265930,0.139801293611526,0.220202386379242,0.187159761786461,0.003407053183764,-0.156829059123993,-0.111931882798672) * MODEL3_texOff(vec2(0,0));
res += mat4(0.024289771914482,-0.036805447191000,-0.128750681877136,-0.204294174909592,-0.045112561434507,0.045631218701601,0.191621139645576,0.006782397627831,-0.053082194179296,-0.265450537204742,-0.070567965507507,-0.150624811649323,0.006618752609938,0.005953268613666,0.109584458172321,0.070358969271183) * MODEL3_texOff(vec2(0,1));
res += mat4(0.019287727773190,0.036154866218567,0.089809529483318,-0.001998434774578,-0.011345911771059,-0.031970590353012,0.010336088947952,0.043860688805580,-0.006983989849687,-0.054501391947269,-0.007523687090725,-0.006830425001681,0.013865796849132,-0.040109619498253,-0.046055987477303,-0.050574548542500) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.170315638184547,0.068501077592373,0.199393451213837,0.132859632372856,-0.086920201778412,0.001520164660178,0.077048860490322,0.005557850468904,-0.022200250998139,-0.099269635975361,0.167438134551048,0.316929548978806,0.013297624886036,-0.061904210597277,0.035159561783075,0.084809251129627) * MODEL3_texOff(vec2(1,0));
res += mat4(0.202362924814224,0.023450391367078,0.124743454158306,0.047624923288822,0.075200922787189,-0.010959568433464,-0.121414124965668,-0.029340814799070,-0.019751500338316,-0.023164970800281,-0.209201827645302,-0.269080460071564,0.092630766332150,-0.020098561421037,0.023211281746626,0.001108517870307) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.062093820422888,0.049730442464352,0.075399406254292,0.050837777554989,-0.029229348525405,-0.017196392640471,-0.086374007165432,-0.040095478296280,0.016854893416166,-0.035890221595764,0.037833064794540,0.001851325388998,0.068284042179585,-0.000289209390758,-0.040681861341000,-0.010677482932806) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.267632901668549,0.044593587517738,0.114813081920147,-0.050211463123560,-0.436752647161484,0.033626355230808,0.120798490941525,-0.159826025366783,0.165241047739983,-0.083269506692886,-0.122094333171844,-0.098066411912441,-0.053412564098835,0.008346293121576,0.100525327026844,-0.065785355865955) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.076904885470867,0.030533507466316,-0.254362016916275,-0.104126855731010,-0.125781774520874,0.031392239034176,-0.060780923813581,0.030750807374716,-0.032432969659567,-0.015612386167049,0.059136133641005,0.001689647790045,-0.085832364857197,-0.004709944128990,-0.034955155104399,-0.001885324250907) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.150417596101761,-0.011608664877713,0.169533401727676,0.251824051141739,-0.258203685283661,0.013942650519311,-0.048094417899847,-0.056363992393017,0.044286299496889,-0.030873583629727,-0.115643881261349,-0.027386099100113,0.059467948973179,-0.013816893100739,-0.078215889632702,-0.033544763922691) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.373860359191895,0.163637369871140,0.134952768683434,0.053138270974159,0.087729848921299,-0.027323130518198,-0.133357122540474,-0.524069309234619,-0.181061133742332,-0.091709993779659,0.172845825552940,-0.102551914751530,0.096374817192554,-0.050441760569811,0.173074945807457,-0.044032663106918) * MODEL4_texOff(vec2(0,0));
res += mat4(0.045806679874659,-0.043790213763714,-0.107858039438725,0.000290959607810,-0.233864843845367,0.084474429488182,0.217235207557678,0.119693562388420,-0.033279795199633,-0.040098562836647,-0.338037043809891,-0.005907474551350,0.047078598290682,0.034022472798824,-0.349102944135666,-0.177005231380463) * MODEL4_texOff(vec2(0,1));
res += mat4(0.008644550107419,-0.006894080433995,0.056639242917299,0.066395476460457,-0.168458208441734,-0.009449295699596,-0.070484489202499,-0.033157277852297,-0.057820659130812,-0.016188679262996,-0.080231472849846,0.004560281056911,-0.031024804338813,-0.019503604620695,-0.083036720752716,-0.131971806287766) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.220057979226112,-0.067773826420307,0.122648239135742,0.110168345272541,-0.266717851161957,0.013133653439581,-0.080360502004623,-0.034384708851576,-0.085903957486153,0.018798643723130,-0.056225720793009,-0.261361718177795,-0.075938798487186,-0.016418254002929,0.120078854262829,-0.242790326476097) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.036522015929222,-0.007921548560262,-0.195701763033867,-0.065474763512611,0.092568777501583,0.008857034146786,-0.034484431147575,-0.034844957292080,-0.009442795068026,0.007947454228997,-0.012852540239692,0.140964701771736,-0.095680505037308,-0.025717698037624,-0.114209093153477,0.002409026725218) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.019065905362368,0.047799035906792,0.007279268000275,0.084668546915054,0.105597801506519,0.002470155712217,0.051410250365734,-0.015824919566512,0.115545719861984,-0.053832709789276,-0.106226764619350,-0.043929975479841,0.007004217244685,0.018972175195813,0.012334467843175,0.120262600481510) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.104800790548325,0.081261940300465,0.102515801787376,-0.050744570791721,0.166165456175804,-0.125991672277451,-0.111183792352676,-0.114101052284241,0.329036682844162,-0.114044085144997,0.065945670008659,-0.095804035663605,0.070719085633755,-0.037316765636206,-0.007369604427367,-0.254186570644379) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.023343978449702,-0.000194780848688,-0.008084055967629,0.222992137074471,0.090396910905838,-0.037477459758520,-0.050057545304298,-0.054002113640308,0.020400993525982,-0.057782799005508,-0.110547512769699,-0.110376551747322,0.000736705551390,0.016026424244046,-0.153720557689667,0.061149463057518) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.087852142751217,0.032828453928232,-0.065539501607418,0.047561809420586,0.207985967397690,0.032087095081806,-0.092667631804943,-0.147931620478630,0.079729564487934,-0.034844230860472,-0.024604585021734,-0.074394904077053,-0.054060827940702,-0.038430988788605,-0.078282378613949,0.016138680279255) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.046423666179180,0.116796053946018,-0.051611341536045,-0.340393394231796,0.014590960927308,-0.477017909288406,-0.001255102688447,0.131883114576340,-0.059414558112621,-0.019272454082966,0.055631387978792,0.189222037792206,-0.030336523428559,-0.022477241232991,-0.120689548552036,-0.066973231732845) * MODEL5_texOff(vec2(0,0));
res += mat4(0.056464180350304,0.038366135209799,-0.037602201104164,0.159555256366730,0.077172704041004,-0.155215963721275,-0.047531075775623,-0.025824021548033,0.098033033311367,-0.027285747230053,-0.127873003482819,-0.052840817719698,-0.031125392764807,0.024821365252137,-0.062810160219669,-0.076051279902458) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.048612803220749,0.024639759212732,-0.009924288839102,0.094287335872650,0.090776614844799,0.086345143616199,0.024375773966312,-0.020639140158892,0.057525500655174,0.016283679753542,0.015658646821976,0.014933226630092,-0.002921815961599,0.035623352974653,0.055519636720419,0.085440956056118) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.095819875597954,0.043857555836439,-0.143613085150719,-0.009528367780149,-0.169929370284081,0.003083261428401,-0.083786949515343,-0.143633455038071,0.155856102705002,0.023883113637567,-0.064665652811527,-0.052342139184475,-0.045639447867870,-0.022784024477005,-0.163471177220345,0.047556594014168) * MODEL5_texOff(vec2(1,0));
res += mat4(0.012389922514558,0.016305701807141,-0.085809096693993,0.105068281292915,-0.044645406305790,-0.037478249520063,0.082086257636547,-0.088353909552097,-0.033459663391113,0.013972486369312,0.060029868036509,-0.039532121270895,0.002163873752579,0.021139457821846,-0.278940945863724,-0.230565652251244) * MODEL5_texOff(vec2(1,1));
res += mat4(0.006535805296153,-0.009809464216232,0.043235510587692,0.018575485795736,-0.019035495817661,0.008578859269619,-0.005574000999331,-0.053498171269894,-0.037501733750105,0.012690315954387,-0.053637601435184,-0.003349131904542,0.119579881429672,-0.037554904818535,0.051094308495522,0.085921399295330) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.157911911606789,-0.034076701849699,-0.116944052278996,0.078941076993942,-0.100039467215538,0.010586387477815,-0.092813551425934,0.106984615325928,-0.047976270318031,0.035603974014521,-0.021437395364046,-0.018454026430845,-0.095136076211929,0.027046585455537,0.186050862073898,0.146781757473946) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.043521605432034,-0.003624127013609,0.050684314221144,-0.056191142648458,0.055285550653934,0.005152106285095,0.122326813638210,-0.023942176252604,-0.050803914666176,-0.058788336813450,-0.035918608307838,-0.104068487882614,0.069228753447533,0.036238357424736,0.052220355719328,0.094652853906155) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.142024621367455,-0.000486224686028,0.240211114287376,0.165198341012001,-0.001325522898696,-0.003142191562802,0.083359308540821,-0.128421500325203,-0.056103367358446,-0.018678281456232,0.171712532639503,0.169908180832863,0.026486182585359,-0.093477740883827,-0.114059679210186,-0.104932107031345) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.156563431024551,-0.017064005136490,-0.266694247722626,-0.056250855326653,0.031724490225315,0.082665979862213,-0.148478388786316,0.570149779319763,0.010085399262607,0.099233888089657,-0.287969529628754,-0.660477638244629,-0.010026540607214,0.038666460663080,0.109156109392643,0.055160105228424) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.119869835674763,-0.071311466395855,0.042011942714453,-0.149360239505768,0.017311956733465,0.015621776692569,-0.425719976425171,-0.185131430625916,0.049794666469097,-0.033440969884396,-0.721253037452698,-0.072736069560051,0.068948887288570,0.038227532058954,0.081666655838490,0.124578334391117) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.027607539668679,-0.017885578796268,0.005616946611553,0.071987718343735,0.013246628455818,-0.007446755189449,0.030018299818039,-0.109783686697483,-0.023072307929397,-0.025760011747479,0.068540371954441,0.052840329706669,-0.051396880298853,-0.009733170270920,-0.126202568411827,-0.010794949717820) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.171562671661377,-0.024935074150562,-0.204190522432327,-0.151196777820587,-0.005226999986917,0.026187777519226,0.107821643352509,0.179365605115891,-0.030755897983909,0.047778863459826,0.100158594548702,-0.035587903112173,0.035110533237457,-0.005793415009975,0.155897811055183,0.084036551415920) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.119902156293392,0.010439201258123,-0.121271684765816,-0.107669465243816,-0.066342644393444,0.028365684673190,-0.166478946805000,0.055526863783598,-0.027894478291273,-0.000280277250567,-0.046663217246532,0.057439986616373,0.020049255341291,0.001192944939248,0.191321596503258,0.175912901759148) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.736637175083160,1.087435245513916,-0.011717778630555,-0.002885927679017) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 4_4

vec4 hook()
{
vec4 res = vec4(-0.146769985556602,-0.133817076683044,-0.154835954308510,-0.127439484000206);
res += mat4(-0.010325144976377,-0.113969713449478,0.004024334251881,-0.128111749887466,0.020002583041787,0.159582167863846,-0.168746441602707,0.059420399367809,-0.109005987644196,-0.040696308016777,-0.028275061398745,-0.064507350325584,0.016238875687122,0.022626083344221,0.021130057051778,-0.005864741746336) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.114533856511116,-0.157648578286171,0.368845760822296,0.096687823534012,-0.128152102231979,0.444812327623367,-0.272027313709259,-0.198029294610023,0.105645962059498,0.135567858815193,0.070460304617882,0.133455887436867,-0.072722502052784,0.096116080880165,0.023166641592979,-0.030185604467988) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.065358698368073,-0.021577754989266,-0.063915513455868,-0.164958953857422,0.161538705229759,0.014612252824008,-0.085342481732368,0.077409438788891,0.134274721145630,-0.046332731842995,0.037022307515144,-0.169449985027313,0.023649100214243,0.036638014018536,0.047218684107065,0.182710185647011) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.084285549819469,-0.183598443865776,-0.032330244779587,-0.046694006770849,0.036217674612999,0.109137944877148,0.157788202166557,-0.240417599678040,0.062307450920343,-0.131909430027008,0.057206798344851,0.002796298358589,0.047862835228443,0.047258418053389,-0.019223248586059,0.170780062675476) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.109157696366310,-0.239815101027489,0.165348634123802,-0.022591717541218,0.036309085786343,0.295863956212997,0.106903538107872,-0.298550486564636,0.276132673025131,-0.523182272911072,0.220192164182663,-0.202593505382538,0.117321893572807,0.060608562082052,0.214625284075737,0.152602523565292) * MODEL1_texOff(vec2(0,0));
res += mat4(0.200236231088638,-0.147573366761208,0.016345344483852,-0.302958458662033,0.029209602624178,0.289233982563019,0.007952268235385,-0.058784123510122,-0.081159457564354,-0.065074503421783,0.000107704545371,-0.167328804731369,-0.049885790795088,0.104204021394253,-0.005046629812568,0.146336302161217) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.032980829477310,0.005135240964592,0.024182513356209,0.045091725885868,-0.045802839100361,-0.142594277858734,-0.117536596953869,-0.065131127834320,0.025488758459687,-0.019626848399639,0.016562135890126,0.009429791010916,-0.034460406750441,0.049493968486786,0.002323722932488,0.225938603281975) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.041027329862118,0.172598913311958,-0.005961816292256,0.123254105448723,0.377485543489456,-0.239706158638000,-0.074597842991352,0.042967256158590,-0.064547210931778,-0.002950927475467,-0.003419492626563,0.025187129154801,0.094768807291985,-0.037174440920353,-0.066019371151924,-0.035658478736877) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.038919508457184,0.038547586649656,-0.064305894076824,-0.049184139817953,-0.323555737733841,0.040023513138294,-0.023292141035199,-0.018366320058703,0.131117895245552,-0.013864396139979,0.043212827295065,-0.136920228600502,-0.048560306429863,0.007337729912251,-0.083952330052853,0.201605886220932) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.045892313122749,-0.079094856977463,-0.050346393138170,0.188304543495178,0.005189207382500,-0.043157245963812,-0.362297803163528,-0.050272051244974,-0.013964659534395,0.036595232784748,-0.102739721536636,-0.024075124412775,-0.012654009275138,0.212369412183762,-0.040982000529766,0.002655213000253) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.007409863639623,-0.009238320402801,-0.033412072807550,-0.294995188713074,-0.067546561360359,-0.089013680815697,-0.502781569957733,0.228090450167656,0.104898773133755,-0.013730525039136,-0.095874436199665,-0.032549705356359,0.052864000201225,-0.112800218164921,-0.090865559875965,0.210991472005844) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.101743787527084,-0.004960786085576,0.015221077017486,-0.054673142731190,-0.014434089884162,-0.121096260845661,0.031173625960946,0.017512802034616,-0.051871184259653,0.047590419650078,-0.122215293347836,-0.125249162316322,0.124863691627979,-0.107539929449558,-0.164706587791443,-0.102985389530659) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.035376802086830,-0.022581020370126,0.023019660264254,-0.278486162424088,0.015537733212113,-0.185913741588593,-0.320630639791489,0.258269339799881,0.097946465015411,-0.091834723949432,-0.024177571758628,-0.185288846492767,-0.030278775840998,-0.030794981867075,0.053483765572309,-0.131091132760048) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.080947242677212,0.101639986038208,0.061704155057669,-0.431620895862579,-0.007954257540405,-0.278576046228409,-0.268310636281967,-0.229063883423805,-0.197375893592834,-0.098929360508919,0.067760311067104,-0.070813745260239,0.024298463016748,0.141989633440971,-0.137142986059189,0.089552894234657) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.035185080021620,0.111695557832718,0.129036307334900,0.035070549696684,-0.108617253601551,-0.079846650362015,-0.212596789002419,0.238712936639786,0.092458888888359,-0.129831910133362,-0.035049494355917,0.184920758008957,0.397467225790024,-0.201308980584145,-0.079695336520672,0.187783896923065) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.038564193993807,0.014916146174073,-0.053237017244101,-0.186271518468857,-0.045343995094299,-0.088418945670128,0.170693486928940,0.252913475036621,-0.139691248536110,-0.118033945560455,0.116519585251808,-0.404768764972687,0.054723799228668,-0.165303900837898,0.031914725899696,-0.170574426651001) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.276946783065796,-0.027745991945267,-0.024862404912710,-0.160092040896416,-0.052005194127560,0.067855812609196,0.205658614635468,-0.048401031643152,0.131174042820930,-0.314291656017303,0.020690092816949,-0.187971413135529,0.290526866912842,-0.023313680663705,0.009037978015840,0.045613560825586) * MODEL2_texOff(vec2(1,0));
res += mat4(0.033734735101461,-0.016174450516701,-0.032615467905998,-0.210950627923012,0.054452776908875,0.098656371235847,0.062975510954857,0.071715563535690,-0.215910270810127,-0.005426784045994,0.091246806085110,0.121427953243256,0.120679222047329,0.028570666909218,0.089305117726326,0.061875525861979) * MODEL2_texOff(vec2(1,1));
res += mat4(0.031103804707527,-0.093351326882839,-0.047812759876251,-0.104718163609505,0.026211755350232,-0.161959871649742,0.224107101559639,0.139158695936203,-0.068710230290890,0.148845970630646,-0.071135677397251,0.046705156564713,0.067844115197659,-0.272631049156189,0.254958927631378,-0.017087450250983) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.010243731550872,0.011249765753746,-0.138164281845093,-0.430833727121353,-0.027437644079328,0.006549858953804,0.219168543815613,-0.374222069978714,0.009153110906482,0.197539329528809,-0.184336200356483,-0.300850927829742,-0.062634371221066,-0.010241479612887,0.390382707118988,0.072468265891075) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.112901315093040,0.077952206134796,-0.006175914779305,0.210734546184540,-0.157071784138680,0.228595450520515,0.103391431272030,0.130113661289215,0.059302095323801,-0.037861362099648,0.039577789604664,0.152066320180893,-0.053144760429859,0.001504384563304,-0.009641394019127,0.061978597193956) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.039624311029911,-0.022219544276595,0.173616707324982,-0.008992581628263,-0.065340101718903,0.026314005255699,-0.089893586933613,-0.028738569468260,-0.005617035087198,-0.074254520237446,0.170968338847160,-0.153075233101845,-0.067749306559563,0.107919916510582,0.139836445450783,0.071151293814182) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.065193876624107,0.140967994928360,0.381750613451004,-0.044500391930342,0.350056380033493,-0.159257307648659,-0.289797961711884,0.038830455392599,0.303612560033798,-0.174089685082436,0.098939739167690,0.106665395200253,0.190501093864441,0.208073496818542,0.263610899448395,-0.076366603374481) * MODEL3_texOff(vec2(0,0));
res += mat4(0.086914554238319,0.252308696508408,0.546496868133545,0.051795400679111,-0.016323817893863,-0.112193100154400,-0.057467669248581,0.112236730754375,-0.203871473670006,0.044343508780003,-0.058590508997440,0.295340895652771,0.086375050246716,-0.028333736583591,0.193894565105438,-0.078384138643742) * MODEL3_texOff(vec2(0,1));
res += mat4(0.037158630788326,-0.005414950195700,0.022996470332146,0.132263407111168,0.062484309077263,0.061807122081518,-0.141089588403702,-0.017997097223997,0.092013023793697,0.002148489467800,-0.057049755007029,-0.010011115111411,-0.048922020941973,0.236718490719795,-0.032340567559004,-0.159141689538956) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.261461883783340,-0.006907893344760,0.061370793730021,0.108297020196915,-0.176619604229927,0.236644431948662,-0.010007995180786,0.003866165876389,-0.268389910459518,0.158822432160378,0.016017150133848,0.004591456614435,0.027328914031386,0.138842478394508,-0.190922364592552,-0.003535601776093) * MODEL3_texOff(vec2(1,0));
res += mat4(0.114998012781143,-0.059349972754717,-0.072737120091915,0.140765115618706,0.054322846233845,0.041385743767023,-0.000059893263824,-0.082637824118137,0.038986925035715,0.013416168279946,0.048398505896330,0.030259696766734,0.111665964126587,0.050401501357555,-0.030598482117057,-0.143157482147217) * MODEL3_texOff(vec2(1,1));
res += mat4(0.089311279356480,0.014337238855660,-0.102640107274055,-0.040010318160057,0.006810774561018,-0.066628396511078,-0.105917885899544,-0.146408095955849,0.009575892239809,0.069665461778641,-0.264178812503815,0.090607807040215,0.025468254461884,0.032569408416748,-0.102869026362896,0.039754793047905) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.055723246186972,-0.369138836860657,-0.326213598251343,-0.261178642511368,0.058238398283720,-0.283489942550659,0.127179458737373,-0.040093544870615,-0.017355194315314,0.042161922901869,-0.820679485797882,-0.046003609895706,0.019569927826524,-0.022159228101373,-0.114453904330730,-0.030798722058535) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.076019354164600,-0.165416866540909,-0.142359763383865,-0.199419304728508,0.003642540657893,0.008269718848169,0.140555828809738,0.116856619715691,0.013117579743266,0.004545216448605,-0.007077527232468,0.060458824038506,-0.042068190872669,-0.060083132237196,-0.072351783514023,0.011603959836066) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.031773049384356,-0.134960800409317,0.022449636831880,0.316504389047623,0.023515513166785,0.075408287346363,-0.053210828453302,-0.069878242909908,0.000935870804824,-0.124641768634319,-0.110461369156837,0.109755694866180,-0.012222304940224,-0.084225699305534,0.122682966291904,-0.148999407887459) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.052792470902205,0.209438785910606,0.004583325702697,0.166810929775238,-0.276924997568130,0.222489893436432,-0.164551451802254,-0.023476874455810,-0.166276246309280,-0.422125011682510,0.015671700239182,-0.600932478904724,-0.127538457512856,-0.534595906734467,-0.099840842187405,-0.482031464576721) * MODEL4_texOff(vec2(0,0));
res += mat4(0.016219902783632,-0.169159188866615,-0.136775970458984,0.063158996403217,0.202022433280945,-0.067841589450836,-0.152458757162094,0.112134605646133,-0.132164984941483,0.192681744694710,0.126575127243996,0.242600739002228,-0.256461292505264,-0.350410014390945,-0.153548285365105,0.186420261859894) * MODEL4_texOff(vec2(0,1));
res += mat4(0.010807079263031,0.021802084520459,0.021013075485826,0.044318605214357,0.037523157894611,0.099819675087929,-0.022307831794024,-0.118480436503887,0.012043685652316,0.077256157994270,-0.003832755144686,-0.080093674361706,0.030660545453429,0.053483508527279,0.031410850584507,-0.020729770883918) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.105363115668297,0.025385474786162,0.060866013169289,-0.096946865320206,0.159440502524376,0.189883783459663,-0.017786633223295,-0.113354854285717,-0.193804845213890,0.106477178633213,0.033450715243816,-0.073504425585270,-0.055694054812193,0.219292536377907,0.080073237419128,-0.201387241482735) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.179772168397903,0.020878609269857,0.009798778221011,0.099635720252991,0.246283203363419,-0.086962476372719,0.031616769731045,-0.152506440877914,-0.007572994567454,0.041005060076714,-0.070790387690067,-0.011013604700565,-0.138186499476433,0.008038408122957,0.018601650372148,0.070205874741077) * MODEL4_texOff(vec2(1,1));
res += mat4(0.043314535170794,-0.148864120244980,-0.119486533105373,-0.010695616714656,0.031492803245783,-0.027454979717731,-0.029343103989959,-0.108580604195595,-0.072639532387257,0.192762270569801,0.108329780399799,-0.136967524886131,-0.052341882139444,-0.033385150134563,-0.222093760967255,-0.334430754184723) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.028295785188675,-0.087421923875809,0.083150416612625,0.256130218505859,-0.104767039418221,0.060352880507708,-0.197382137179375,0.170981302857399,-0.185552120208740,0.289282113313675,0.001398175372742,-0.013208854012191,0.026020791381598,-0.112461924552917,-0.164032831788063,0.124561034142971) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.020999772474170,-0.020421802997589,-0.007683713454753,-0.066516451537609,-0.007912399247289,-0.049797192215919,-0.071581624448299,0.023143045604229,0.015466354787350,-0.024970125406981,0.121407337486744,-0.085000805556774,0.070440813899040,-0.049933705478907,0.065375827252865,-0.138961762189865) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.078654624521732,-0.125001206994057,0.003992760088295,-0.045865096151829,-0.037673939019442,0.055658821016550,-0.059850107878447,-0.011364206671715,0.065048523247242,0.167815208435059,-0.097236029803753,-0.100551120936871,0.083845168352127,-0.050145357847214,-0.047197829931974,-0.311469703912735) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.196304768323898,-0.182878494262695,-0.468510746955872,0.196913868188858,-0.195345625281334,0.362041980028152,-0.265542060136795,0.278394907712936,-0.193200364708900,0.570202708244324,-0.119046323001385,0.069353215396404,-0.068113759160042,-0.223655298352242,-0.098894871771336,-0.063946329057217) * MODEL5_texOff(vec2(0,0));
res += mat4(0.080283775925636,0.025650059804320,-0.067614108324051,-0.446360558271408,-0.001237180083990,0.126430094242096,0.059214126318693,0.179270163178444,0.163386255502701,0.098005175590515,-0.126124963164330,-0.095101907849312,-0.181010320782661,-0.238739028573036,-0.209680899977684,0.069735564291477) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.055985182523727,-0.017586391419172,0.134506776928902,-0.136926397681236,-0.069060087203979,-0.107932664453983,0.020988505333662,-0.089547649025917,-0.109880298376083,-0.177722141146660,0.031378977000713,0.032055351883173,0.016639320179820,-0.048437926918268,0.082239545881748,-0.047534897923470) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.786890208721161,-0.025782454758883,0.159434705972672,0.423867940902710,0.112706333398819,-0.060246173292398,0.019573224708438,0.031314548105001,0.235798135399818,-0.311093389987946,-0.095056936144829,0.065756283700466,0.030115945264697,-0.037901565432549,0.151035323739052,-0.386080384254456) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.094545945525169,-0.043862458318472,0.066869653761387,-0.010966438800097,-0.212339848279953,0.013513929210603,0.073161460459232,0.128248110413551,-0.080267615616322,-0.140192896127701,-0.085094504058361,-0.025586992502213,-0.153433486819267,0.044965673238039,0.055221021175385,0.161045625805855) * MODEL5_texOff(vec2(1,1));
res += mat4(0.025878794491291,0.070534393191338,-0.072228454053402,-0.013986838050187,0.087799243628979,-0.057330727577209,0.110013909637928,-0.124840945005417,-0.002414955990389,0.022223491221666,-0.098066508769989,0.013793371617794,0.014928983524442,-0.062475729733706,-0.145338356494904,0.149086967110634) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.020887807011604,0.147977143526077,-0.248681172728539,-0.173356026411057,-0.200715288519859,0.224457129836082,-0.023126777261496,0.081985354423523,0.103002533316612,0.057291295379400,-0.210420772433281,-0.364964812994003,0.112345598638058,-0.082821704447269,0.113466806709766,0.508875846862793) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.059880357235670,0.040128897875547,-0.015065493993461,0.020491832867265,0.045611955225468,0.077240899205208,0.033964097499847,0.052391435950994,-0.056624364107847,-0.083289444446564,-0.008790969848633,0.007561898324639,-0.028467474505305,0.057893045246601,0.032510533928871,-0.166852399706841) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.012887185439467,-0.027920804917812,-0.374893009662628,0.138168677687645,-0.119026668369770,0.068662852048874,0.045564580708742,0.136405915021896,0.028616253286600,-0.068348325788975,-0.006193818058819,0.129070654511452,-0.101065345108509,0.014179137535393,0.167714834213257,-0.095081716775894) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.141227334737778,-0.013670573942363,0.092067226767540,-0.031278565526009,0.367452889680862,-0.606610834598541,0.065722152590752,-0.287560135126114,-0.038246467709541,0.033441606909037,0.167602866888046,-0.523709237575531,-0.253022551536560,-0.172226697206497,-0.069365561008453,0.322458028793335) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.309567719697952,0.152146399021149,0.008199258707464,0.261804074048996,-0.134092003107071,-0.265248805284500,0.026684584096074,0.014393787831068,-0.121424898505211,0.121437676250935,-0.000818779109977,-0.274998605251312,0.180801957845688,-0.144466683268547,0.061442904174328,-0.222394645214081) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.168533995747566,-0.015291130170226,0.092608563601971,0.016523696482182,-0.002332355361432,-0.066982187330723,-0.019769897684455,0.113023042678833,0.016019076108932,0.149298861622810,-0.003836821066216,0.229113683104515,0.032693382352591,0.011583356186748,0.011325740255415,0.034523811191320) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.030188981443644,-0.037932902574539,0.006971134338528,-0.246354877948761,-0.121295206248760,-0.333833843469620,-0.154204726219177,-0.156619653105736,-0.026010673493147,-0.019953686743975,0.011498043313622,-0.055273737758398,-0.017068821936846,0.024708483368158,-0.000610962451901,0.281469404697418) * MODEL6_texOff(vec2(1,0));
res += mat4(0.022469354793429,-0.022776635363698,-0.052268050611019,-0.003248378401622,0.033204786479473,-0.016805769875646,-0.080801300704479,0.073084078729153,-0.111749112606049,-0.003271735506132,0.014288713224232,0.044946502894163,-0.060306269675493,0.114914141595364,0.088430941104889,-0.114467523992062) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.018448900431395,-0.022889887914062,-0.011991801671684,-0.029601737856865) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 4_5

vec4 hook()
{
vec4 res = vec4(-0.121771395206451,-0.114134475588799,0.021106328815222,-0.086010165512562);
res += mat4(0.053385190665722,0.105940937995911,-0.075388930737972,0.030546676367521,0.235172718763351,0.095936879515648,-0.030242539942265,-0.069384515285492,0.032390579581261,-0.031405426561832,0.071037188172340,-0.108991391956806,-0.137242928147316,-0.069608256220818,0.120716780424118,0.112236395478249) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.060270834714174,0.094043754041195,-0.005499583203346,0.172955811023712,-0.175461858510971,-0.141751036047935,-0.129509374499321,-0.005079537630081,0.244851797819138,-0.062805861234665,-0.241930931806564,0.063353493809700,0.048290688544512,0.115321308374405,0.059804499149323,0.021357413381338) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.099707067012787,0.104317061603069,-0.009194076992571,0.161945223808289,0.162821605801582,-0.086106933653355,-0.023672249168158,-0.134797647595406,-0.007383367512375,-0.060368534177542,0.052103973925114,-0.218343451619148,0.000300530809909,-0.063434369862080,0.029689699411392,-0.071047559380531) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.165409311652184,-0.001951071317308,-0.271836996078491,0.158045262098312,-0.286510705947876,-0.196573883295059,-0.236637040972710,-0.171753734350204,0.343496292829514,-0.023083951324224,0.263034194707870,-0.118983775377274,0.259231835603714,0.054393950849771,0.430775254964828,0.204451665282249) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.056586626917124,0.284269750118256,-0.114334851503372,0.048922080546618,0.231585592031479,-0.283626794815063,-0.124435633420944,0.057574432343245,-0.269632875919342,0.166070058941841,-0.381973981857300,0.125077500939369,-0.098375588655472,-0.033285230398178,-0.190816491842270,-0.161320030689240) * MODEL1_texOff(vec2(0,0));
res += mat4(0.076596535742283,0.165649190545082,0.197732895612717,0.159476369619370,-0.184609189629555,0.136192455887794,0.100971028208733,-0.114880107343197,0.095120646059513,-0.195532321929932,-0.059567406773567,-0.142587050795555,0.075930245220661,0.006949825212359,-0.009784965775907,0.265104681253433) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.036497335880995,-0.002586668357253,-0.108668565750122,-0.056567452847958,0.122753351926804,0.010560051538050,-0.017867088317871,0.019263515248895,0.050285853445530,-0.067519925534725,0.089979000389576,-0.036371778696775,-0.017636470496655,-0.001545181032270,0.068428695201874,-0.035469595342875) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.022448915988207,0.085852138698101,0.128909572958946,0.170848980545998,-0.194596469402313,0.079553313553333,-0.101142957806587,0.074940927326679,-0.017509333789349,-0.057419430464506,-0.061533227562904,0.001725630601868,0.035078205168247,-0.082293435931206,-0.011228122748435,-0.081025511026382) * MODEL1_texOff(vec2(1,0));
res += mat4(0.014511409215629,0.044764779508114,0.037733506411314,0.101495392620564,0.120325289666653,-0.042085129767656,0.009259228594601,0.041199140250683,-0.029008941724896,0.024834718555212,0.018274040892720,0.033575475215912,-0.079003587365150,0.056579943746328,-0.067647971212864,0.115371219813824) * MODEL1_texOff(vec2(1,1));
res += mat4(0.120799362659454,0.006689470726997,-0.044677987694740,-0.005680100526661,-0.182900920510292,-0.173709273338318,0.037104334682226,-0.089315839111805,0.008191789500415,0.047794941812754,-0.116674020886421,0.060168318450451,0.297516703605652,0.134479925036430,-0.043510917574167,-0.140983536839485) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.030550193041563,-0.066708311438560,-0.093934036791325,-0.013037626631558,-0.022622643038630,0.134689733386040,-0.064193755388260,0.199274748563766,0.016226997599006,-0.141482725739479,-0.158891454339027,-0.177424162626266,0.113243877887726,-0.112363256514072,0.370116114616394,0.131314754486084) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.021676119416952,-0.079560928046703,0.044499766081572,-0.007001373916864,0.082726538181305,-0.078631252050400,0.067020922899246,-0.227159827947617,-0.003538861870766,0.116118088364601,0.021772613748908,0.041873138397932,0.114545762538910,-0.030655421316624,0.097599327564240,-0.045198034495115) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.265661090612411,-0.052522417157888,-0.408619046211243,0.106935225427151,0.232196673750877,-0.016580788418651,0.200496986508369,0.122602775692940,-0.191498935222626,-0.140849202871323,-0.310476183891296,0.008614015765488,0.004096576012671,-0.104118652641773,-0.096041314303875,-0.166137024760246) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.005299456417561,-0.226810112595558,-0.071014821529388,-0.286092340946198,-0.204613149166107,-0.162407383322716,-0.053456023335457,-0.183707922697067,-0.078583620488644,0.013054483570158,-0.166447147727013,-0.346561044454575,0.419830441474915,0.210152402520180,0.176974102854729,-0.020937267690897) * MODEL2_texOff(vec2(0,0));
res += mat4(0.013580060563982,0.049867287278175,0.045611206442118,-0.024835256859660,0.064479589462280,-0.022728376090527,-0.052875380963087,0.096087917685509,0.032944638282061,-0.122724451124668,-0.001945373020135,-0.051057048141956,0.174748823046684,-0.025617700070143,0.111389435827732,0.150190800428391) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.139356985688210,-0.007807255256921,-0.111854642629623,-0.024005984887481,-0.106674775481224,-0.049884289503098,0.127407550811768,-0.022606171667576,-0.015223500318825,0.068017236888409,-0.300873011350632,0.001734016113915,0.145474940538406,0.083208367228508,0.001170599716716,0.092271730303764) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.023825284093618,-0.036376718431711,-0.006568506825715,-0.023395542055368,0.195051357150078,-0.143895208835602,0.064838930964470,-0.081830404698849,-0.131134375929832,-0.175278946757317,-0.096491098403931,0.081218235194683,0.108608163893223,-0.058314274996519,0.111277163028717,-0.104131534695625) * MODEL2_texOff(vec2(1,0));
res += mat4(0.006206938996911,-0.099228523671627,0.072690442204475,-0.192045077681541,-0.129636242985725,0.052198018878698,-0.008260236121714,0.059537868946791,-0.048445407301188,0.000341586826835,-0.016387827694416,0.021585976704955,-0.054717604070902,0.086647935211658,-0.090978257358074,0.005236429627985) * MODEL2_texOff(vec2(1,1));
res += mat4(0.073524117469788,0.115250840783119,0.027405761182308,0.052586566656828,-0.045633655041456,0.173263594508171,-0.110933028161526,0.205710738897324,0.105099707841873,0.081742495298386,-0.169978201389313,-0.034682892262936,-0.200616359710693,-0.070982761681080,0.062044441699982,0.035747122019529) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.315367609262466,0.046677809208632,-0.001241740654223,-0.030251419171691,0.053260836750269,0.381066828966141,0.011490870267153,0.096279524266720,-0.180701166391373,-0.125257596373558,0.024937523528934,0.053892750293016,0.169627934694290,-0.104453250765800,0.080330505967140,-0.153155490756035) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.102658301591873,-0.108800113201141,0.151755988597870,-0.039925400167704,0.035528741776943,0.082914218306541,-0.010121665894985,0.143469244241714,0.078242316842079,-0.156128808856010,0.040690053254366,-0.155656471848488,0.055472459644079,-0.034444723278284,0.014672143384814,-0.010103884153068) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.157083362340927,0.164185792207718,0.060946121811867,0.062763728201389,-0.031429719179869,-0.014656669460237,-0.082081533968449,-0.051474280655384,-0.070248633623123,-0.081058099865913,-0.136968448758125,-0.136218592524529,0.190481156110764,0.049525141716003,-0.135075956583023,-0.089663997292519) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.313576966524124,0.019320923835039,0.211319863796234,0.071942269802094,-0.105179123580456,0.370423942804337,0.013619761914015,0.271593421697617,0.085282750427723,0.477294355630875,0.299671024084091,0.278320074081421,0.111344620585442,-0.143104478716850,0.136359632015228,0.104784123599529) * MODEL3_texOff(vec2(0,0));
res += mat4(0.148857012391090,0.155647382140160,0.228239089250565,0.044685751199722,0.000751018291339,0.236384272575378,0.001757019315846,0.093700848519802,0.085139989852905,-0.041715312749147,-0.092620626091957,0.207342818379402,-0.051779035478830,-0.158627346158028,0.019674731418490,-0.172018080949783) * MODEL3_texOff(vec2(0,1));
res += mat4(0.183745920658112,-0.047817893326283,0.047881193459034,-0.023337114602327,-0.029072923585773,0.154531657695770,-0.048049751669168,0.123198218643665,0.006095949560404,0.060176990926266,0.002650032285601,0.090209707617760,0.116513065993786,-0.024610150605440,0.001226199674420,-0.036071501672268) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.113126978278160,0.211879298090935,0.140516474843025,0.051455717533827,0.065947830677032,-0.007876283489168,-0.028481844812632,-0.065220639109612,0.064908653497696,-0.116433754563332,-0.061218678951263,-0.247869580984116,0.030802816152573,-0.135452717542648,-0.081448368728161,-0.162489324808121) * MODEL3_texOff(vec2(1,0));
res += mat4(0.048415344208479,0.188079893589020,0.175059497356415,0.086000353097916,0.007566839922220,0.095151111483574,0.040713727474213,-0.012968875467777,-0.089976347982883,0.069087788462639,-0.055186420679092,-0.022540103644133,-0.037752438336611,-0.053061526268721,0.001763731474057,-0.110021099448204) * MODEL3_texOff(vec2(1,1));
res += mat4(0.120778732001781,0.061813779175282,-0.219848707318306,0.038266077637672,-0.073667868971825,-0.074368096888065,-0.195061728358269,0.065843850374222,0.065574459731579,0.008204310201108,0.031083572655916,-0.078804872930050,0.100132331252098,0.057303670793772,-0.103175461292267,0.000627563917078) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.189170554280281,-0.176241055130959,-0.005229610018432,-0.043224662542343,0.074662402272224,-0.035160221159458,0.014333166182041,-0.300459414720535,-0.227409929037094,0.092119038105011,-0.086985208094120,0.000980566139333,0.008953946642578,0.031539030373096,-0.026645349338651,0.049811024218798) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.066987276077271,0.047390755265951,0.104693688452244,-0.109151542186737,0.046210572123528,0.072283163666725,-0.010014702565968,-0.086102828383446,0.049150411039591,-0.068694420158863,0.054105147719383,-0.057050015777349,-0.039694413542747,0.122819222509861,0.052524197846651,0.104688666760921) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.037323355674744,0.051821403205395,0.028604838997126,0.156823396682739,0.031690768897533,0.012969308532774,-0.060624286532402,0.200281202793121,-0.392336249351501,0.042804393917322,-0.408755511045456,0.022868460044265,-0.401540845632553,-0.023534532636404,-0.289716064929962,-0.040396373718977) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.064336434006691,0.200695812702179,0.052957385778427,0.115628622472286,-0.081249110400677,-0.282786756753922,0.186379328370094,-0.361312687397003,-0.116618752479553,-0.442375570535660,0.214980110526085,-0.048364080488682,-0.532644331455231,-0.201069310307503,-0.318693697452545,0.035068485885859) * MODEL4_texOff(vec2(0,0));
res += mat4(0.181047186255455,-0.085746757686138,0.216686800122261,-0.010324201546609,0.059284798800945,-0.216138020157814,-0.180419206619263,0.107475459575653,0.085189312696457,0.002647377550602,0.083979554474354,0.008537394925952,0.104150012135506,0.147557407617569,0.054436538368464,0.113632671535015) * MODEL4_texOff(vec2(0,1));
res += mat4(0.013993560336530,0.076724596321583,-0.058212697505951,0.048854585736990,0.046125177294016,0.031506717205048,-0.025158839300275,0.019531540572643,-0.173073649406433,-0.025783510878682,-0.186247125267982,0.020390395075083,0.005709799006581,-0.014409353025258,-0.099581196904182,-0.045757271349430) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.028686014935374,-0.067297928035259,-0.062994219362736,-0.099011607468128,0.085142381489277,-0.075790397822857,-0.052342951297760,-0.110566541552544,0.029506307095289,0.156691402196884,0.118657879531384,-0.031090736389160,0.062400873750448,0.031797770410776,-0.108003713190556,0.092163801193237) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.081993505358696,-0.035105373710394,0.019133068621159,0.008043970912695,-0.104432374238968,-0.005028954707086,-0.001184338005260,-0.030958628281951,0.043286185711622,0.052604526281357,-0.005907190963626,0.096169337630272,-0.119834959506989,-0.032316379249096,-0.067190200090408,-0.061333794146776) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.072621427476406,-0.153667330741882,-0.044462334364653,-0.097544930875301,-0.090497113764286,-0.047388911247253,-0.040186412632465,-0.068744495511055,-0.045910127460957,-0.145566478371620,-0.155117586255074,-0.059412840753794,-0.035812325775623,-0.024235133081675,-0.326006442308426,-0.001215423922986) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.078087180852890,-0.200197085738182,0.369883596897125,-0.213351473212242,-0.167337477207184,-0.105782702565193,-0.092494793236256,-0.186839133501053,-0.023077016696334,0.464820712804794,-0.066537775099277,0.299618333578110,-0.137154310941696,0.021708855405450,0.017642352730036,-0.062185909599066) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.078043498098850,0.111134164035320,-0.095247305929661,-0.125899389386177,0.006328570190817,-0.193273022770882,-0.107640065252781,-0.075628787279129,-0.026480052620173,0.062490928918123,0.033986330032349,-0.005902876146138,0.049334798008204,0.002518657129258,-0.029777478426695,-0.014076306484640) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.544515073299408,-0.090912088751793,-0.315774679183960,-0.031991191208363,-0.185421273112297,-0.083456397056580,0.257017105817795,-0.076675429940224,-0.002806089818478,-0.031935486942530,0.074169568717480,0.007945022545755,-0.183628901839256,-0.033489748835564,-0.120079241693020,0.082336805760860) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.195574998855591,-0.184728711843491,0.361724883317947,-0.216467320919037,-0.044749636203051,0.038293547928333,-0.475166171789169,0.376127719879150,0.125936597585678,-0.227974981069565,0.031591158360243,-0.255985528230667,-0.218213140964508,0.016139071434736,-0.177610591053963,-0.043000496923923) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.062250453978777,-0.075777061283588,0.042547252029181,-0.000489101861604,-0.005203300155699,-0.121621981263161,-0.045957997441292,-0.074886776506901,-0.109378777444363,0.140105649828911,-0.166465550661087,0.110033772885799,0.049002565443516,0.009958181530237,0.121481508016586,-0.036399368196726) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.244792357087135,-0.067861810326576,0.135998770594597,-0.063007213175297,-0.069670900702477,0.034926120191813,-0.010898278094828,0.050614539533854,0.002080162987113,-0.107224874198437,0.018507895991206,-0.107872858643532,-0.022696716710925,0.104961529374123,-0.080277793109417,0.086765632033348) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.260708749294281,-0.088644228875637,0.048078715801239,-0.048844497650862,-0.041697666049004,-0.127422273159027,-0.183003246784210,-0.061780385673046,-0.118920229375362,0.090730786323547,-0.023973831906915,0.111967280507088,0.001251015695743,-0.074145577847958,-0.093444705009460,0.066169358789921) * MODEL5_texOff(vec2(1,0));
res += mat4(0.058219589293003,-0.054957717657089,0.031506322324276,-0.069955147802830,-0.074844166636467,0.032303158193827,-0.065945960581303,-0.045249484479427,0.079757198691368,-0.028626564890146,-0.010009041987360,0.109508208930492,-0.044614549726248,0.008584298193455,0.074119605123997,-0.026151139289141) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.022500520572066,0.060362230986357,0.180892780423164,0.061993021517992,-0.202032819390297,-0.052808154374361,0.092569299042225,0.002896819030866,0.176639363169670,-0.116967044770718,0.052508655935526,0.041469085961580,-0.029968200251460,0.089449219405651,0.114138849079609,-0.172279432415962) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.154135018587112,0.076336249709129,-0.056401632726192,0.194175302982330,0.061724927276373,0.002377708209679,0.054260112345219,0.247196748852730,-0.307565063238144,-0.165858805179596,-0.012615634128451,-0.212377727031708,0.126850336790085,-0.274646908044815,0.141166955232620,0.031771413981915) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.011381885036826,0.015987267717719,0.002263650298119,-0.082549884915352,0.024112941697240,-0.110927663743496,0.048424012959003,0.042976308614016,0.010847941040993,0.039407312870026,0.073830090463161,-0.103106677532196,-0.069362856447697,-0.014489870518446,-0.092220731079578,0.000459221628262) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.104966811835766,0.275803297758102,0.302052944898605,0.013707106932998,0.212259456515312,-0.074364133179188,0.172774747014046,-0.105095908045769,-0.136624008417130,0.132301524281502,-0.064677409827709,0.121603682637215,-0.103549323976040,-0.141474500298500,-0.096861898899078,-0.002843349473551) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.189652085304260,0.096129156649113,0.165035247802734,-0.090021736919880,-0.384546428918839,0.206543162465096,-0.185520023107529,0.098830454051495,0.324929863214493,-0.417231857776642,-0.141981869935989,-0.181091502308846,0.120373196899891,0.330809116363525,-0.141932860016823,0.348193436861038) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.001735813100822,-0.051688056439161,-0.052076298743486,0.309409439563751,-0.008998923934996,-0.127714902162552,0.061130765825510,-0.262478113174438,-0.034220844507217,0.013235790655017,0.154413908720016,-0.084261193871498,-0.086445115506649,-0.005658833775669,0.044428758323193,-0.057906806468964) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.169357240200043,-0.219565838575363,-0.041555527597666,-0.215262696146965,-0.040215570479631,0.021103335544467,0.032599344849586,0.020139098167419,0.003947236575186,-0.068175218999386,0.095967739820480,-0.120199903845787,-0.006624995730817,-0.077923558652401,0.090818516910076,0.001869225641713) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.032228194177151,0.179878726601601,0.103614352643490,0.057378910481930,0.047675762325525,-0.148203715682030,0.051705494523048,0.023458564653993,-0.059003517031670,0.239848926663399,0.007984759286046,0.095430381596088,-0.101650141179562,-0.034221976995468,0.033782012760639,0.036892164498568) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.037707582116127,0.115234233438969,-0.164279714226723,0.137034520506859,0.058884233236313,-0.093197308480740,0.053361106663942,-0.116067029535770,0.008439486846328,-0.033378299325705,0.038942560553551,-0.013548345305026,0.076406061649323,-0.014382143504918,0.028387619182467,-0.088161535561085) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.007275470532477,0.006714538671076,-0.025735974311829,0.025907786563039) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_Medium_3x_LineArt] mapping 4_6

vec4 hook()
{
vec4 res = vec4(-0.239155769348145,-0.057079676538706,-0.139995768666267,-0.266268372535706);
res += mat4(-0.085922285914421,-0.081150323152542,-0.110868982970715,0.053984906524420,-0.171973496675491,-0.029665192589164,-0.107443280518055,-0.085116319358349,-0.054666586220264,-0.167925193905830,-0.007324221543968,0.231736600399017,0.217004641890526,0.023628823459148,0.019218835979700,0.096025511622429) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.170429423451424,-0.407142817974091,0.168259575963020,0.106288760900497,-0.019824935123324,0.158088088035583,-0.238370522856712,-0.100711628794670,-0.300039499998093,-0.320242375135422,0.153822228312492,0.218263000249863,0.039788410067558,0.042378451675177,0.004603762179613,-0.028928335756063) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.185505390167236,-0.039839938282967,-0.031362954527140,-0.305919975042343,0.061104282736778,0.025887576863170,-0.262557029724121,-0.029790258035064,-0.126491293311119,-0.098870635032654,-0.037447459995747,-0.012880751863122,0.044004049152136,-0.010514902882278,-0.044912155717611,0.026582809165120) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.151375189423561,-0.265950143337250,0.128202214837074,0.022712726145983,-0.165695309638977,0.000341789680533,0.089072361588478,0.273284941911697,-0.031245851889253,-0.160813450813293,0.054067015647888,0.016471570357680,0.354682624340057,-0.025785513222218,0.013188929297030,-0.043512441217899) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.334050595760345,0.268475860357285,-0.314827233552933,-0.107860676944256,-0.150495782494545,-0.005701955407858,0.200521871447563,0.110756829380989,-0.356430202722549,-0.069933563470840,-0.358065456151962,-0.167996615171432,-0.137469246983528,-0.092628270387650,0.032848671078682,0.196992903947830) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.136106446385384,-0.481165498495102,-0.059709955006838,-0.051683433353901,0.067493714392185,-0.089279465377331,0.159558117389679,0.068555884063244,-0.206585124135017,0.170258954167366,-0.229756236076355,-0.168395444750786,0.223628580570221,0.053414966911077,-0.012933873571455,0.002479222137481) * MODEL1_texOff(vec2(0,1));
res += mat4(0.027571523562074,0.060165449976921,-0.071174934506416,-0.054599530994892,0.045093730092049,0.023551499471068,-0.094603970646858,-0.206847444176674,0.018170736730099,0.010518858209252,-0.099571004509926,-0.037124469876289,-0.019026083871722,0.072312980890274,0.064356409013271,0.012328322976828) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.208300143480301,-0.291472762823105,-0.348519116640091,-0.112025037407875,0.119589835405350,0.187795728445053,0.015971994027495,-0.058650247752666,-0.066037833690643,-0.148279190063477,-0.033051103353500,0.020637311041355,0.030283220112324,0.010520960204303,0.130626618862152,-0.061018634587526) * MODEL1_texOff(vec2(1,0));
res += mat4(0.038313385099173,-0.131948873400688,0.065023168921471,-0.000192840700038,0.060730442404747,-0.004324933513999,-0.050253488123417,-0.140897274017334,-0.112264908850193,-0.005646042525768,-0.122181862592697,-0.023872636258602,0.150415122509003,0.010745794512331,0.004543884657323,-0.011780137196183) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.153689205646515,0.025395913049579,-0.246564239263535,-0.055679827928543,-0.105455130338669,-0.075197443366051,0.052000910043716,-0.238888442516327,-0.056650187820196,0.034634899348021,-0.031859949231148,-0.072104483842850,-0.209377542138100,0.037229396402836,0.001036323839799,-0.014933186583221) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.167739450931549,0.053879112005234,-0.129194483160973,0.012010644190013,0.240348160266876,0.053437862545252,-0.106100127100945,-0.391743302345276,-0.134273812174797,-0.037343114614487,0.141203999519348,0.085474498569965,0.145949319005013,0.108209490776062,-0.221180751919746,0.007664112374187) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.015246829949319,0.037696346640587,0.000846533046570,0.051734063774347,-0.172069728374481,-0.033713750541210,0.048325296491385,0.006610025651753,0.002185558667406,-0.015268558636308,0.074616923928261,-0.166167825460434,-0.100693754851818,-0.206639125943184,0.087579637765884,-0.057508096098900) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.092559449374676,0.023020463064313,0.310816437005997,0.195562243461609,0.160777494311333,0.089595310389996,-0.108302749693394,-0.302983999252319,-0.211619094014168,-0.067343495786190,0.036705661565065,0.010064151138067,-0.154444500803947,-0.164695009589195,-0.061302445828915,0.097760647535324) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.184151008725166,-0.030793242156506,0.221695452928543,0.216731980443001,-0.085512429475784,0.004441043827683,-0.111669644713402,-0.280957728624344,0.043271191418171,-0.001765265944414,-0.188134804368019,-0.139110475778580,0.256029397249222,0.454183846712112,0.177289292216301,-0.172522097826004) * MODEL2_texOff(vec2(0,0));
res += mat4(0.160730674862862,0.141245111823082,0.125913649797440,0.063247397542000,0.101671516895294,0.037997078150511,-0.098568864166737,-0.153722316026688,-0.056202173233032,-0.046117883175611,-0.217818930745125,-0.031876187771559,0.044227100908756,-0.067890666425228,-0.228825822472572,-0.064480341970921) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.167494654655457,-0.055777292698622,-0.132582321763039,-0.069806464016438,0.042829368263483,0.000276465958450,-0.170417100191116,0.120573639869690,-0.606148123741150,-0.115540474653244,-0.153538897633553,0.050615731626749,-0.094232581555843,-0.001800315221772,-0.016337063163519,-0.039492506533861) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.080310955643654,0.035186987370253,-0.126108929514885,-0.016885273158550,-0.059202726930380,0.014827799052000,-0.276301920413971,0.110404230654240,-0.028933158144355,0.028397781774402,0.117014244198799,-0.207959786057472,0.049718625843525,-0.063870616257191,-0.096817366778851,-0.018240444362164) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.136121392250061,0.014309844933450,-0.053500976413488,-0.004165451508015,0.076279856264591,-0.043492000550032,-0.102853260934353,-0.010044272989035,0.088909395039082,-0.062994472682476,0.199309319257736,0.110354438424110,-0.009743549861014,0.034765694290400,0.038767244666815,0.108293592929840) * MODEL2_texOff(vec2(1,1));
res += mat4(0.183199018239975,-0.024583064019680,-0.071654342114925,-0.128055393695831,0.166677162051201,0.049788329750299,0.229411810636520,0.316843718290329,-0.167935609817505,0.008298893459141,-0.012392091564834,0.013426186516881,-0.002375564770773,-0.042312964797020,0.136902108788490,0.156070724129677) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.059107448905706,-0.064510837197304,-0.004633256699890,0.047795943915844,-0.082080826163292,0.063645474612713,0.092178232967854,0.310278922319412,0.046434029936790,-0.067320123314857,-0.272154867649078,0.087280713021755,-0.048992134630680,-0.092279367148876,0.288548588752747,0.093164831399918) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.191448569297791,-0.037562035024166,-0.025215357542038,0.105636209249496,-0.068930834531784,-0.004548726137727,0.034993618726730,0.084863908588886,-0.164671435952187,0.033097848296165,-0.125536799430847,0.288527160882950,0.126450195908546,0.041647043079138,0.001417372957803,-0.183733835816383) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.089419327676296,-0.038182538002729,-0.029386324808002,0.385230094194412,-0.168536916375160,0.009800585918128,0.075436644256115,-0.137899667024612,-0.182862639427185,0.136493861675262,0.011583449319005,0.121791146695614,-0.224777132272720,0.080908894538879,-0.235385552048683,0.062215488404036) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.122458793222904,0.006142879836261,0.155711844563484,0.490060150623322,0.035949427634478,0.004236329812557,0.181810349225998,-0.247011303901672,0.035582363605499,-0.138768553733826,0.582556068897247,-0.049018174409866,0.145823016762733,0.113818220794201,-0.416264027357101,0.178145051002502) * MODEL3_texOff(vec2(0,0));
res += mat4(0.204384848475456,0.011769429780543,0.120405137538910,0.382513761520386,0.037866130471230,0.057437468320131,-0.034075085073709,-0.046196274459362,0.062051694840193,-0.104347653687000,0.055787377059460,-0.107863344252110,-0.059823170304298,0.049003548920155,-0.165424957871437,0.240428820252419) * MODEL3_texOff(vec2(0,1));
res += mat4(0.075720630586147,0.010453430935740,0.228401765227318,0.011114347726107,0.085661262273788,0.023082107305527,0.069424822926521,-0.041570119559765,0.158572614192963,-0.048540174961090,0.185155913233757,-0.012474368326366,-0.163621857762337,-0.070579156279564,0.292196214199066,0.030400015413761) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.079101718962193,-0.017248820513487,0.015319481492043,-0.042787540704012,0.041859276592731,-0.031341109424829,0.093978568911552,0.195038989186287,-0.134694561362267,0.021579811349511,0.311602383852005,0.213083997368813,0.036151081323624,0.068368494510651,0.424790114164352,0.000675193208735) * MODEL3_texOff(vec2(1,0));
res += mat4(0.303746789693832,0.002768269507214,0.112826041877270,-0.026806585490704,-0.004154377151281,-0.012108992785215,0.226837098598480,0.050658181309700,0.102482236921787,-0.075142294168472,0.140576764941216,0.073771871626377,-0.176162183284760,-0.050333827733994,0.281832873821259,0.008667738176882) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.070055827498436,0.036803912371397,0.147250860929489,-0.075643971562386,-0.043811228126287,-0.038011625409126,-0.091493830084801,-0.228199213743210,-0.010428346693516,0.020247297361493,-0.040437605232000,-0.267077714204788,-0.048866286873817,0.049429446458817,-0.041075795888901,-0.054116502404213) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.015062015503645,0.122133873403072,-0.022533265873790,-0.278355121612549,-0.007842653430998,-0.116086713969707,0.173555225133896,-0.194044455885887,0.178875446319580,0.093836255371571,-0.259925127029419,-0.165879517793655,-0.060795530676842,-0.052304912358522,0.032058287411928,-0.030287414789200) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.018573252484202,0.035458527505398,0.111471198499203,-0.139927253127098,0.043924089521170,-0.021585628390312,0.081393949687481,-0.187218844890594,0.032812613993883,-0.002458081813529,0.048057809472084,0.178442180156708,-0.042599137872458,-0.024599656462669,0.025777300819755,-0.152249678969383) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.149460613727570,-0.039295610040426,-0.278719127178192,0.074714511632919,0.054983325302601,0.042564205825329,-0.144715532660484,-0.162455081939697,-0.118148617446423,-0.071014426648617,-0.057388238608837,-0.148678362369537,-0.325689673423767,-0.113083727657795,0.047629725188017,0.058171603828669) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.027323486283422,-0.080100066959858,-0.208146467804909,0.176997095346451,-0.189505234360695,-0.005971334408969,-0.160441577434540,-0.265410929918289,-0.452196329832077,-0.108520403504372,0.271818190813065,-0.421260029077530,-0.575838625431061,-0.009393977932632,0.132640019059181,-0.503370881080627) * MODEL4_texOff(vec2(0,0));
res += mat4(0.148278489708900,-0.157600909471512,-0.250980615615845,-0.185338899493217,0.225869119167328,0.276484280824661,-0.389723390340805,-0.329174727201462,0.101477116346359,0.020475627854466,0.001058798865415,-0.037931382656097,0.201088413596153,0.028955856338143,0.077954083681107,-0.250232696533203) * MODEL4_texOff(vec2(0,1));
res += mat4(0.097881741821766,-0.046069972217083,-0.016336122527719,0.018622549250722,-0.030734926462173,0.077261514961720,0.012520175427198,0.011556701734662,0.103395253419876,-0.025509977713227,-0.014141205698252,0.027230430394411,-0.000380232406314,0.012812080793083,0.039525762200356,0.049896657466888) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.091639608144760,0.123950451612473,0.124226175248623,-0.006749941036105,-0.215834438800812,-0.072643086314201,0.001139837782830,0.054884377866983,0.009488461539149,0.006188675761223,-0.323905050754547,0.073630802333355,-0.075081400573254,-0.117088742554188,-0.541474342346191,0.203789636492729) * MODEL4_texOff(vec2(1,0));
res += mat4(0.073010534048080,0.002643153537065,-0.241236940026283,0.102719627320766,0.073935076594353,0.025624934583902,0.133097112178802,0.009419010952115,-0.039972778409719,-0.009663708508015,-0.143424004316330,-0.091606043279171,0.057198770344257,0.028991924598813,-0.191899433732033,0.083140790462494) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.161687985062599,-0.009904941543937,-0.074044160544872,-0.065863512456417,0.022125663235784,-0.009302707388997,-0.117312401533127,-0.195400133728981,0.030879024416208,-0.064930751919746,-0.171296015381813,0.078871317207813,-0.155582383275032,0.030025858432055,-0.096016444265842,-0.351966321468353) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.293754905462265,-0.068385742604733,0.129992172122002,0.012886128388345,-0.186585485935211,0.050599168986082,-0.246224746108055,-0.181848764419556,-0.051635205745697,0.130761623382568,-0.010725644417107,0.245460733771324,-0.003069653175771,-0.000544437556528,-0.047162204980850,0.005217827856541) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.059652578085661,-0.137618184089661,-0.031337462365627,-0.019599298015237,-0.116147138178349,0.047947973012924,-0.044887576252222,0.067060418426991,-0.039531938731670,-0.013789630495012,0.127002924680710,0.247138217091560,0.006308060139418,-0.014371100813150,0.051229868084192,0.070844404399395) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.170849129557610,0.003345985896885,0.024169890210032,-0.283534377813339,0.009871083311737,-0.329484969377518,-0.080125220119953,-0.132371693849564,0.197964072227478,0.094486474990845,0.192048594355583,0.031224127858877,-0.051883939653635,-0.043825011700392,-0.002907573943958,-0.016458515077829) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.153295308351517,0.039652019739151,-0.094210818409920,-0.335188180208206,0.046332024037838,0.072907753288746,0.053359985351563,0.205797463655472,-0.027842231094837,0.033220022916794,0.108223438262939,0.467205196619034,-0.019051622599363,-0.030230974778533,0.129150018095970,-0.143828839063644) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.339061707258224,-0.173422977328300,-0.012963036075234,-0.000725647609215,0.022161928936839,-0.064217932522297,0.269060343503952,0.285948097705841,-0.073372974991798,-0.014088016003370,0.174205943942070,0.096293501555920,0.020665433257818,0.060701023787260,-0.148526728153229,-0.232916370034218) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.103989481925964,-0.010199390351772,-0.085770823061466,0.123749203979969,-0.087316907942295,0.004036049358547,0.032759126275778,-0.022949589416385,-0.063740938901901,0.026294169947505,-0.040511567145586,0.033849265426397,0.120872639119625,-0.068181112408638,-0.240681752562523,0.016722097992897) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.073557212948799,-0.074308246374130,-0.136511966586113,0.089083187282085,0.069493576884270,-0.122125722467899,0.620641350746155,0.059545960277319,0.016168382018805,0.108213007450104,0.130446046590805,-0.263225913047791,-0.254289478063583,-0.010488178580999,-0.358967334032059,0.141956195235252) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.124169662594795,0.030122794210911,0.003107497002929,0.001383471651934,0.039389718323946,-0.033007077872753,0.103821963071823,0.023090882226825,0.009907403960824,0.012096168473363,-0.181280493736267,-0.238875687122345,0.096741192042828,0.015463637188077,-0.076109662652016,0.001740285544656) * MODEL5_texOff(vec2(1,1));
res += mat4(0.383385479450226,0.058359220623970,-0.122859388589859,-0.042854070663452,-0.064131736755371,-0.044330056756735,0.066985793411732,0.145337417721748,0.116980418562889,-0.009927784092724,0.083159610629082,-0.029209539294243,-0.067786306142807,0.008855710737407,-0.230619862675667,-0.171339824795723) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.258612722158432,0.163232833147049,-0.151288464665413,0.096804074943066,0.020796012133360,-0.051642403006554,0.026293581351638,0.461281120777130,0.078052379190922,-0.035886809229851,-0.011146831326187,-0.175309553742409,0.042979791760445,-0.058495447039604,0.000107870677311,0.170146405696869) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.112315990030766,-0.048886582255363,0.052557986229658,0.033908549696207,-0.046062115579844,0.036306828260422,-0.009609091095626,0.173663839697838,0.121211506426334,-0.007762419525534,0.021031249314547,0.076754085719585,0.030786145478487,-0.086406208574772,0.025170862674713,-0.058227133005857) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.030487343668938,0.556802511215210,0.037283897399902,-0.270592898130417,0.146174609661102,0.071630135178566,-0.113219819962978,0.039599962532520,0.217030897736549,0.108834177255630,-0.080008216202259,0.113407894968987,0.029795549809933,-0.041203238070011,0.265955895185471,0.102576933801174) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.051565792411566,-0.282096534967422,0.114131540060043,0.189726978540421,-0.548633515834808,0.051829658448696,-0.074442304670811,-0.265344798564911,-0.200583279132843,0.084495998919010,-0.111496835947037,0.287451654672623,0.241285234689713,0.138774186372757,0.020527062937617,-0.188243359327316) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.071684159338474,0.331670582294464,-0.132252693176270,0.081524707376957,0.183600142598152,0.037421587854624,0.024524975568056,-0.085778824985027,0.092748537659645,-0.137928307056427,0.121790722012520,-0.049011476337910,-0.071575812995434,-0.093759238719940,0.028744719922543,0.012800653465092) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.074503891170025,0.097380287945271,0.024754626676440,0.124023929238319,-0.093165218830109,-0.015604251064360,0.111648775637150,-0.036907475441694,0.105017647147179,0.039243325591087,0.164964795112610,0.054630320519209,0.100956119596958,0.058741826564074,-0.009210781194270,-0.057148836553097) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.208925575017929,0.285535365343094,0.040090668946505,0.045944269746542,-0.101029559969902,0.006008944939822,-0.070966973900795,-0.315684586763382,-0.162642061710358,-0.024465488269925,-0.224154755473137,-0.031049462035298,0.073162652552128,0.018699318170547,-0.080953396856785,-0.036275111138821) * MODEL6_texOff(vec2(1,0));
res += mat4(0.044206511229277,0.014731916598976,-0.024560263380408,-0.060221746563911,-0.021123938262463,0.042953062802553,0.043868329375982,-0.086796492338181,0.011484892107546,0.012538661248982,-0.152123793959618,0.010203224606812,-0.097241237759590,-0.033159084618092,0.161556527018547,0.101700268685818) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.003786885878071,0.867000222206116,-0.013322979211807,-0.021146578714252) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV1
//!DESC [AiUpscale_Medium_3x_LineArt] sub-pixel convolution 1

vec4 hook()
{
vec3 res = vec3(-0.000313483149512,-0.000090166533482,-0.000359350233339);
res += mat4x3(0.002809770172462,0.000610485672951,-0.003190594026819,-0.006782888434827,0.011422926560044,0.006439737975597,0.000474309723359,0.001168412156403,0.003191139781848,0.013489469885826,-0.003930706996471,-0.002767688827589) * MODEL7_texOff(vec2(-1,-1));
res += mat4x3(-0.027529500424862,-0.020154299214482,-0.003848597873002,0.022481514140964,0.015009928494692,-0.035400703549385,-0.007998237386346,0.001263593789190,0.004010923672467,0.023098725825548,-0.024912040680647,-0.002418137388304) * MODEL7_texOff(vec2(-1,0));
res += mat4x3(0.000661487923935,-0.005427298601717,-0.017004320397973,-0.005086879711598,-0.004621657542884,0.003981654532254,-0.000361063081073,-0.003041572635993,-0.005509384442121,-0.002868817187846,-0.005987539421767,0.004279591608793) * MODEL7_texOff(vec2(-1,1));
res += mat4x3(0.018856534734368,0.008622231893241,-0.001201790873893,-0.004307668656111,0.009358711540699,0.003912201151252,-0.001730675809085,-0.007104337681085,-0.001798107987270,0.001115778810345,-0.005624822806567,-0.000931800866965) * MODEL7_texOff(vec2(0,-1));
res += mat4x3(-0.016794294118881,-0.005708705633879,0.015125558711588,0.007334550376981,0.009053342975676,-0.017136517912149,0.024483758956194,0.040572918951511,0.024249773472548,-0.013830320909619,-0.026623167097569,0.030009556561708) * MODEL7_texOff(vec2(0,0));
res += mat4x3(-0.000780682661571,-0.004125230479985,-0.011939398944378,-0.002288900548592,-0.003466113703325,-0.002693866612390,0.000576986116357,-0.004734545014799,0.001754479599185,-0.003347617574036,-0.000092565656814,0.014535271562636) * MODEL7_texOff(vec2(0,1));
res += mat4x3(0.000984654761851,-0.001239731209353,-0.001281762379222,-0.001692665740848,-0.001297523267567,0.000701246084645,-0.010873069055378,-0.005301050841808,-0.001022299053147,0.002807391341776,0.000879051978700,-0.000795960950200) * MODEL7_texOff(vec2(1,-1));
res += mat4x3(0.001963699935004,0.002650508889928,0.002613971009851,0.002632072195411,0.001099494053051,-0.004854000173509,0.000773362058681,-0.004864367190748,-0.011676614172757,0.001867518760264,-0.001683299080469,0.003113887738436) * MODEL7_texOff(vec2(1,0));
res += mat4x3(0.000402384583140,0.002115094335750,0.002786716679111,-0.000376167998184,0.000107555599243,0.001466147950850,0.002010206459090,0.000741317344364,0.000870126066729,0.002360843122005,0.001377555192448,-0.000009846878129) * MODEL7_texOff(vec2(1,1));
res += mat4x3(0.003272445406765,-0.003379813628271,0.001788195688277,-0.000541088811588,-0.007801153697073,-0.004423701670021,0.000762525305618,-0.000264286791207,0.000968613836449,-0.002629783703014,-0.001252128742635,-0.000942827260587) * MODEL8_texOff(vec2(-1,-1));
res += mat4x3(-0.027217358350754,0.002563972258940,0.024250963702798,0.011707012541592,0.021362252533436,0.016834681853652,0.005265493411571,0.005949912592769,0.004061156418175,-0.006691199727356,-0.008175959810615,-0.007230324205011) * MODEL8_texOff(vec2(-1,0));
res += mat4x3(-0.000630048103631,0.007741312962025,-0.003961897455156,-0.002263404428959,-0.002081028418615,-0.001087890705094,0.000689792155754,0.001831760630012,0.002886202652007,-0.000271345634246,-0.001218257122673,-0.003459041705355) * MODEL8_texOff(vec2(-1,1));
res += mat4x3(0.010274619795382,0.007776699494570,0.003996746148914,0.026615072041750,0.008555403910577,0.002457368653268,-0.004183694720268,-0.001606752513908,-0.000819040869828,0.013732049614191,0.007161263376474,0.001764845801517) * MODEL8_texOff(vec2(0,-1));
res += mat4x3(0.015164869837463,-0.032578736543655,-0.025048945099115,-0.017384050413966,0.012118068523705,0.037505108863115,-0.018118077889085,-0.017895407974720,-0.012371396645904,-0.029804479330778,-0.012623195536435,0.010462198406458) * MODEL8_texOff(vec2(0,0));
res += mat4x3(-0.002731103450060,-0.001686736242846,0.017272032797337,0.002608673181385,-0.006094385404140,-0.018512470647693,-0.000870107323863,-0.004419636912644,-0.011174993589520,-0.001225590822287,-0.009370296262205,-0.024037454277277) * MODEL8_texOff(vec2(0,1));
res += mat4x3(0.003139710985124,-0.002523810835555,-0.003637218149379,-0.001504550105892,-0.002594166202471,-0.002087520202622,-0.001434213831089,0.000473765598144,0.002312968950719,0.006022689864039,0.002017438644543,0.001474428689107) * MODEL8_texOff(vec2(1,-1));
res += mat4x3(0.001569228130393,0.005186295602471,0.003867449937388,0.003011182881892,0.001043227734044,-0.000260428729234,0.024011537432671,0.014731378294528,0.003526842221618,0.006807163823396,0.009342546574771,0.008913502097130) * MODEL8_texOff(vec2(1,0));
res += mat4x3(-0.003283980768174,-0.002360843587667,0.000189127778867,0.004229986108840,0.005229970905930,0.003949596546590,0.001231529866345,0.008821355178952,0.018442368134856,0.001252077519894,0.002656578319147,0.004699680954218) * MODEL8_texOff(vec2(1,1));
res += mat4x3(-0.007460877764970,-0.001494152587838,0.000128576517454,-0.007239071186632,-0.008062599226832,-0.005517879966646,0.012236864306033,-0.020160606130958,-0.000053305480833,-0.024458983913064,0.004509804304689,0.007105908822268) * MODEL9_texOff(vec2(-1,-1));
res += mat4x3(-0.003591264132410,-0.009663786739111,-0.012536295689642,-0.000294853700325,-0.001152859069407,-0.002772829961032,-0.004638602025807,-0.003636463079602,0.014585186727345,-0.015131179243326,0.020355148240924,0.014293462969363) * MODEL9_texOff(vec2(-1,0));
res += mat4x3(-0.001310922321863,-0.002685405313969,-0.002161848824471,-0.003835491370410,-0.003565962426364,-0.002189873950556,0.001255635870621,0.001872137305327,-0.002933078445494,0.002005584770814,0.002002923982218,-0.008372533135116) * MODEL9_texOff(vec2(-1,1));
res += mat4x3(-0.002115821233019,0.000758804148063,0.001734896097332,0.000291292031761,-0.007992358878255,-0.005759315565228,0.031245656311512,0.005597927607596,-0.022783948108554,-0.007867139764130,-0.010251246392727,0.005277601070702) * MODEL9_texOff(vec2(0,-1));
res += mat4x3(0.020209591835737,0.013409486971796,0.003144594840705,0.017424067482352,0.026841780170798,0.020902100950480,-0.006187447812408,-0.017149955034256,-0.010507429949939,-0.011069658212364,-0.007591841742396,0.019221154972911) * MODEL9_texOff(vec2(0,0));
res += mat4x3(-0.005367791745812,-0.000284787820419,0.013278484344482,-0.004231279715896,-0.007665848825127,-0.000514383835252,0.001670955913141,0.003796549281105,-0.000863220135216,0.003666212316602,0.001595294568688,0.000765875796787) * MODEL9_texOff(vec2(0,1));
res += mat4x3(-0.002289477735758,-0.000772154249717,-0.000274089281447,-0.001690805424005,0.000816122279502,0.001135280705057,0.002352810930461,0.000810092955362,-0.000796590989921,-0.000605293433182,-0.000107525651401,0.000519996858202) * MODEL9_texOff(vec2(1,-1));
res += mat4x3(-0.005830304697156,-0.007504107430577,-0.005652571562678,-0.004873202182353,-0.005784109700471,-0.003727574134246,0.001851196750067,0.003780557308346,0.002321036765352,0.001802913495339,0.004340344108641,0.003804278094321) * MODEL9_texOff(vec2(1,0));
res += mat4x3(0.000706093211193,0.000433543900726,-0.002917257836089,-0.000493419996928,-0.003148671006784,-0.005133506841958,-0.000535204424523,-0.001023144344799,0.000744237913750,-0.000758191512432,-0.001174955861643,-0.000470725644846) * MODEL9_texOff(vec2(1,1));
res += mat4x3(-0.005721201654524,0.017687333747745,0.004716610535979,0.002272736281157,0.000945268897340,-0.000104873121018,0.000606994668487,0.000900115817785,-0.000916374090593,-0.002197562716901,-0.003776638768613,-0.002434349851683) * MODEL10_texOff(vec2(-1,-1));
res += mat4x3(0.024231813848019,-0.016522426158190,-0.045470349490643,0.012519831769168,0.009601028636098,0.005734625738114,-0.002193195512518,-0.003935916349292,-0.002307563321665,-0.022701038047671,0.014483597129583,0.011478992179036) * MODEL10_texOff(vec2(-1,0));
res += mat4x3(-0.003877874463797,-0.002703253645450,0.016277860850096,0.003309045685455,0.004308315925300,0.010148380883038,-0.000607421214227,0.000277596322121,-0.000134136163979,0.004704212769866,0.008331684395671,-0.010111456736922) * MODEL10_texOff(vec2(-1,1));
res += mat4x3(0.024678809568286,-0.000136409769766,-0.006775654852390,-0.017410278320313,-0.005207944195718,-0.000456230918644,0.000210681406315,0.002735534450039,0.004348500166088,0.004072468727827,-0.010148091241717,-0.006300631444901) * MODEL10_texOff(vec2(0,-1));
res += mat4x3(-0.017822876572609,-0.008215127512813,0.021925458684564,0.003421350615099,-0.018750667572021,-0.027359360828996,0.055431414395571,0.036684002727270,0.010790209285915,-0.028029941022396,-0.004844589158893,0.030821178108454) * MODEL10_texOff(vec2(0,0));
res += mat4x3(0.000799695495516,-0.001069520134479,-0.007079566828907,0.002290754346177,0.010075462050736,0.013873392716050,0.006592971738428,0.020916806533933,0.041009128093719,0.005137265194207,0.006260972004384,0.004198621958494) * MODEL10_texOff(vec2(0,1));
res += mat4x3(-0.002636351389810,-0.000901057501324,-0.001210986636579,-0.000971599482000,0.001185985165648,0.001062470022589,0.002464863471687,0.001003284356557,0.000760561670177,0.002315681893378,-0.000406910985475,-0.001326340599917) * MODEL10_texOff(vec2(1,-1));
res += mat4x3(0.002583581954241,0.002116370713338,-0.002209213795140,-0.002259553875774,-0.002714418340474,-0.002341730520129,0.011377819813788,0.011424870230258,0.005395959597081,-0.002276329556480,-0.001394209102727,0.002780209993944) * MODEL10_texOff(vec2(1,0));
res += mat4x3(-0.000133885027026,0.001675034523942,0.002017381368205,-0.002473903121427,-0.003151645418257,-0.001279714168049,-0.000844821566716,0.001213128212839,0.005999267101288,-0.000555650040042,-0.000271211902145,-0.001298840506934) * MODEL10_texOff(vec2(1,1));
res += mat4x3(-0.002602149266750,0.000506277370732,0.000671905581839,0.005171011667699,0.000975237286184,-0.001516219461337,-0.001186791690998,0.002591943601146,0.003105536568910,-0.002804887248203,0.002593431621790,-0.000073379800597) * MODEL11_texOff(vec2(-1,-1));
res += mat4x3(0.024203250184655,-0.004098880570382,-0.011672073043883,0.005347373429686,-0.010610695928335,-0.008508417755365,0.017587991431355,-0.008235071785748,-0.007614006288350,0.004494012799114,-0.005478173494339,-0.011629699729383) * MODEL11_texOff(vec2(-1,0));
res += mat4x3(-0.002396553289145,-0.007386471610516,0.016361275687814,-0.000844053633045,0.000560900778510,0.007250937633216,0.000195684944629,-0.009773345664144,0.002813921542838,-0.001680770888925,0.000725797901396,0.002716196235269) * MODEL11_texOff(vec2(-1,1));
res += mat4x3(0.007014097645879,-0.002434063702822,-0.003101455280557,-0.037571795284748,0.001917299581692,0.007124291732907,-0.004674375522882,0.000727433420252,0.002972232876346,0.025910630822182,-0.011001165956259,-0.013826376758516) * MODEL11_texOff(vec2(0,-1));
res += mat4x3(-0.058113884180784,-0.005562125239521,0.025365686044097,0.019599348306656,0.039159618318081,-0.020863687619567,0.028296224772930,0.012209172360599,-0.018428161740303,-0.016589773818851,-0.001966072013602,0.037459999322891) * MODEL11_texOff(vec2(0,0));
res += mat4x3(0.005542217753828,0.033190388232470,-0.006940396036953,0.002046947134659,-0.003966895863414,-0.011854643933475,0.014098940417171,-0.008689545094967,-0.026335544884205,0.005599969998002,0.001102395588532,-0.008949292823672) * MODEL11_texOff(vec2(0,1));
res += mat4x3(-0.001165894791484,-0.001257085241377,-0.000217611130211,0.001363117131405,-0.000199507092475,0.000154079054482,0.000518172979355,0.001641830895096,0.000101303659903,-0.006465307902545,0.001097857370041,0.003217258490622) * MODEL11_texOff(vec2(1,-1));
res += mat4x3(0.006594828329980,0.002552118152380,-0.002092149341479,-0.001238975906745,0.000403421203373,0.004497909452766,0.000310175120831,0.000228997436352,-0.000599984719884,-0.002888517221436,-0.000942679936998,-0.005880272015929) * MODEL11_texOff(vec2(1,0));
res += mat4x3(-0.002668189583346,-0.004520406946540,-0.001470593386330,-0.002309745876119,-0.003503612242639,-0.001006738282740,-0.002500253263861,0.000395904964535,-0.000855659600347,0.001727705355734,0.002797761699185,-0.000582422479056) * MODEL11_texOff(vec2(1,1));
res += mat4x3(0.003737508552149,-0.002345188520849,-0.001777192810550,0.003990181256086,-0.002075592987239,-0.004198512062430,0.016096238046885,0.004824951291084,0.001980945933610,0.004994655027986,0.004685402847826,0.001384278526530) * MODEL12_texOff(vec2(-1,-1));
res += mat4x3(-0.017772002145648,0.003395930398256,0.010568237863481,-0.014265164732933,-0.006049438845366,0.005010383669287,0.028600994497538,0.037681523710489,0.032380588352680,-0.005221917759627,-0.004822434857488,0.000859949039295) * MODEL12_texOff(vec2(-1,0));
res += mat4x3(-0.000362330465578,0.004453866742551,0.005716054234654,0.003885961137712,0.000877909129485,-0.007974764332175,0.003667828161269,0.006785534322262,0.013862532563508,-0.001212698640302,-0.000661608763039,-0.002315278397873) * MODEL12_texOff(vec2(-1,1));
res += mat4x3(-0.007870395667851,-0.000606161775067,0.001522704027593,0.008209452033043,-0.002794296247885,-0.005181293934584,-0.003201792249456,-0.000608287344221,0.000336662196787,-0.018932556733489,-0.003836422460154,-0.003638400929049) * MODEL12_texOff(vec2(0,-1));
res += mat4x3(-0.016454394906759,0.039059352129698,-0.006280438043177,-0.001750146853738,0.007186443079263,0.011864970438182,-0.014677505008876,-0.013347026892006,-0.009090203791857,-0.033677108585835,-0.049031414091587,-0.041301678866148) * MODEL12_texOff(vec2(0,0));
res += mat4x3(0.008928702212870,0.016198663040996,-0.035193916410208,0.006177876144648,0.004537865053862,-0.005951957777143,-0.001533049973659,-0.005826483480632,-0.010935330763459,-0.004021978937089,-0.004840886685997,-0.014421084895730) * MODEL12_texOff(vec2(0,1));
res += mat4x3(-0.002064994769171,0.001852050307207,0.002257307292894,-0.000599280640017,0.000460815877886,0.000127047067508,0.002144749276340,0.000665621191729,0.000102103200334,-0.002503379015252,-0.002297878731042,-0.002418693853542) * MODEL12_texOff(vec2(1,-1));
res += mat4x3(0.004810669925064,-0.001303953002207,-0.003863193560392,-0.002268339274451,-0.003378141671419,-0.001772661344148,0.003672957187518,0.005235520191491,0.004601899068803,-0.005510024260730,-0.005451472010463,-0.003795010270551) * MODEL12_texOff(vec2(1,0));
res += mat4x3(0.000805871328339,-0.002075025113299,0.000425948150223,-0.000450268969871,-0.000099172873888,-0.001134101767093,0.000314608536428,0.000495430431329,0.001745974062942,0.001822151825763,0.000958763237577,-0.003198702819645) * MODEL12_texOff(vec2(1,1));
return vec4(res, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV2
//!DESC [AiUpscale_Medium_3x_LineArt] sub-pixel convolution 2

vec4 hook()
{
vec3 res = vec3(0.000107944550109,0.000114252216008,-0.000450854684459);
res += mat4x3(0.006203011609614,-0.000486231467221,-0.001809488516301,-0.006300663109869,0.006573760416359,0.005592714529485,0.000654074770864,0.000659805315081,0.000116969560622,0.003588155610487,-0.000827069976367,-0.001435070415027) * MODEL7_texOff(vec2(-1,-1));
res += mat4x3(0.009412904269993,0.016358103603125,0.015918795019388,0.013072336092591,0.008083876222372,-0.019200589507818,0.005106764845550,0.008135085925460,0.003482662606984,0.010203103534877,-0.008445097133517,-0.008257228881121) * MODEL7_texOff(vec2(-1,0));
res += mat4x3(0.000147681595990,-0.000402453268180,0.002009042073041,-0.004054408986121,-0.003143681911752,0.002653569681570,-0.000574606820010,-0.000921991828363,0.001146411988884,-0.001507897744887,-0.001675116247497,-0.000863034045324) * MODEL7_texOff(vec2(-1,1));
res += mat4x3(0.011845288798213,0.001679904526100,0.000415110203903,-0.004368186928332,0.013364434242249,0.003420325927436,-0.017490815371275,-0.002655123826116,0.001882744953036,0.010827254503965,-0.007427135482430,-0.001479351543821) * MODEL7_texOff(vec2(0,-1));
res += mat4x3(0.032188747078180,0.041606899350882,0.032192923128605,0.014606387354434,0.016103358939290,-0.033460453152657,0.003854739479721,-0.015677407383919,-0.029526984319091,0.004982682876289,-0.042759060859680,0.033620323985815) * MODEL7_texOff(vec2(0,0));
res += mat4x3(0.001640050206333,0.003491034964100,0.012986906804144,-0.003087579272687,-0.004427895415574,-0.002971072681248,-0.004431084264070,-0.002885995898396,0.005836436990649,-0.003936170134693,-0.005239013116807,0.023045822978020) * MODEL7_texOff(vec2(0,1));
res += mat4x3(-0.002230692887679,-0.002873352030292,-0.000885698071215,-0.002877778140828,-0.000217286811676,0.001536903087981,0.000155545189045,0.003940131515265,0.000303623499349,0.001662014983594,-0.000202706840355,-0.001428082701750) * MODEL7_texOff(vec2(1,-1));
res += mat4x3(0.002146906685084,0.003399495966733,-0.000630094960798,0.004372278694063,0.001804530853406,-0.005266970954835,-0.008139166980982,-0.016009284183383,-0.010008239187300,-0.003559147007763,-0.001730836695060,0.004057765472680) * MODEL7_texOff(vec2(1,0));
res += mat4x3(0.000021004914743,0.000827092095278,0.001583003322594,-0.000911900133360,0.000001022627089,0.002366505796090,0.001624664058909,0.001052016858011,0.000033030908526,0.002346584806219,0.003738194238394,-0.001388747943565) * MODEL7_texOff(vec2(1,1));
res += mat4x3(0.004312313161790,0.000180995790288,0.000551845238078,0.009658400900662,0.012107990682125,0.006610587239265,-0.002411487977952,-0.001425381633453,-0.000369612302165,0.000588370545302,0.000229127836064,0.000362181977835) * MODEL8_texOff(vec2(-1,-1));
res += mat4x3(-0.002461540978402,-0.015448436141014,-0.003488869406283,-0.008280653506517,-0.007990070618689,-0.000371446833014,-0.006156338378787,-0.005841622594744,-0.004174493253231,-0.001030527870171,-0.001775274635293,-0.001094751409255) * MODEL8_texOff(vec2(-1,0));
res += mat4x3(0.000169797262060,0.002050144365057,0.007982514798641,0.000420703145210,-0.001434148638509,-0.006304094567895,-0.000841509841848,-0.002083274303004,-0.005003636702895,-0.001643980853260,-0.001800938975066,-0.001035647816025) * MODEL8_texOff(vec2(-1,1));
res += mat4x3(-0.014454297721386,0.010092820972204,0.007437071297318,-0.001801403006539,0.005811241921037,0.001931232865900,0.003186606336385,-0.002025457564741,-0.003202609252185,0.007927961647511,0.002576704602689,0.001400768174790) * MODEL8_texOff(vec2(0,-1));
res += mat4x3(0.037594344466925,0.009905902668834,-0.039640784263611,-0.020709820091724,-0.038466989994049,-0.026391411200166,0.012280592694879,0.012949467636645,0.009792937897146,0.033113893121481,0.034263953566551,0.023790840059519) * MODEL8_texOff(vec2(0,0));
res += mat4x3(-0.000505422416609,-0.009124692529440,0.001485082670115,0.001958082197234,0.005938003305346,-0.000940672238357,0.001477091689594,0.003308159997687,0.009559128433466,0.001351698650979,0.005979171954095,0.018054168671370) * MODEL8_texOff(vec2(0,1));
res += mat4x3(0.001734078046866,-0.002375289564952,-0.003385396441445,-0.004012332763523,-0.002420895500109,-0.002527367090806,0.002322552492842,-0.000398868811317,0.000815680017695,-0.003970457240939,-0.004801807925105,-0.003042814554647) * MODEL8_texOff(vec2(1,-1));
res += mat4x3(-0.002323094289750,0.004325047601014,0.005698437802494,0.003999584820122,-0.001544912112877,-0.004777048714459,0.012888872064650,0.014990140683949,0.010347369126976,0.014137067832053,0.010639690794051,0.001131881261244) * MODEL8_texOff(vec2(1,0));
res += mat4x3(-0.003327787620947,-0.001125515671447,0.000674326671287,0.003716016886756,0.004980659577996,0.005812182556838,-0.000901832012460,0.000590706709772,0.004909984301776,0.000830395496450,0.002937204902992,0.009867370128632) * MODEL8_texOff(vec2(1,1));
res += mat4x3(-0.000418582640123,-0.000472195999464,-0.000571822049096,-0.011394960805774,-0.006066627334803,-0.002761840121821,0.001150680356659,-0.006035910919309,0.005111328326166,-0.011230505071580,0.003691935446113,0.001441992586479) * MODEL9_texOff(vec2(-1,-1));
res += mat4x3(0.003846890293062,0.002120361896232,0.000443449564045,-0.008184154517949,-0.012226357124746,-0.013083708472550,-0.002134207403287,-0.000613860611338,0.002860836219043,-0.001260628108867,0.012046284042299,-0.000476546527352) * MODEL9_texOff(vec2(-1,0));
res += mat4x3(-0.000438273418695,0.000533859187271,0.002622750820592,0.000397326686652,-0.000764039345086,-0.003876507049426,0.000300312560285,0.000379322736990,-0.002896529156715,0.001039158320054,0.000290513475193,-0.003955455962569) * MODEL9_texOff(vec2(-1,1));
res += mat4x3(-0.008096681907773,-0.001446042559110,0.001686991075985,0.006668274290860,-0.008809934370220,-0.007308133412153,0.047209821641445,-0.012054847553372,-0.029896391555667,-0.018977111205459,-0.009896525181830,0.009860239923000) * MODEL9_texOff(vec2(0,-1));
res += mat4x3(0.009689422324300,0.001867304439656,-0.006910618394613,0.027777051553130,0.040723707526922,0.035249270498753,-0.008877499960363,-0.018609883263707,0.005145823583007,-0.021476138383150,-0.001113344565965,0.034484144300222) * MODEL9_texOff(vec2(0,0));
res += mat4x3(-0.005672466009855,-0.002505657030270,0.007688881829381,-0.003778878366575,-0.005121273919940,0.004799103830010,0.003589725121856,0.005057659000158,-0.001058795605786,0.003919412381947,0.002303343731910,-0.000831264303997) * MODEL9_texOff(vec2(0,1));
res += mat4x3(-0.001385297859088,0.000524444738403,0.000959684024565,-0.005789832212031,-0.000658257049508,0.001341126626357,0.000541598827112,0.003062329953536,-0.001810115063563,-0.002299437765032,-0.001839616685174,-0.000052275416238) * MODEL9_texOff(vec2(1,-1));
res += mat4x3(-0.002089676447213,-0.003264492610469,-0.003570201806724,-0.007999344728887,-0.009609727188945,-0.008007607422769,0.001184271881357,0.000922310689930,-0.001962802838534,0.001347376150079,0.004178390372545,0.002563546644524) * MODEL9_texOff(vec2(1,0));
res += mat4x3(0.000276699749520,0.000687583000399,-0.000917129567824,-0.003356676781550,-0.006989757064730,-0.008428061380982,-0.000770021521021,-0.000579459418077,0.001197573496029,-0.000229560901062,-0.000911891926080,-0.001499837148003) * MODEL9_texOff(vec2(1,1));
res += mat4x3(0.017841916531324,0.004564975854009,-0.000444599660113,-0.002891767071560,-0.002155413385481,-0.001571249798872,0.001163072534837,0.000515557941981,0.000068893466960,-0.000495137646794,-0.001916312845424,-0.001356113119982) * MODEL10_texOff(vec2(-1,-1));
res += mat4x3(0.003298788564280,-0.009202755056322,0.004693399183452,-0.006838391069323,-0.006715491879731,-0.003546895692125,0.003225665073842,0.002813897561282,0.001932541024871,-0.010219556279480,0.007056825794280,0.004506139084697) * MODEL10_texOff(vec2(-1,0));
res += mat4x3(-0.005851813126355,-0.004950780421495,0.007639954797924,0.001534619717859,0.000016709123884,-0.003086247481406,0.002626745961607,0.004506962839514,0.005394883453846,0.003065737662837,0.003122513880953,-0.006211502011865) * MODEL10_texOff(vec2(-1,1));
res += mat4x3(-0.007448469288647,-0.013589149340987,0.001506855944172,-0.001449688221328,-0.001141699030995,-0.002867486560717,0.005889360327274,0.002282971050590,0.000290743715595,0.001281555625610,-0.009134341962636,-0.006136837415397) * MODEL10_texOff(vec2(0,-1));
res += mat4x3(-0.006631294265389,0.018947675824165,0.020976517349482,-0.036294825375080,-0.026389673352242,-0.006865032482892,-0.008034280501306,0.004384079482406,0.010667392984033,-0.040458664298058,0.006104951258749,0.033864732831717) * MODEL10_texOff(vec2(0,0));
res += mat4x3(-0.000700124015566,-0.001958269160241,-0.006394511088729,0.000092780464911,-0.008112197741866,-0.025086825713515,-0.000636062934063,-0.006046700756997,-0.015272701159120,0.005201912950724,0.010781341232359,-0.002404682803899) * MODEL10_texOff(vec2(0,1));
res += mat4x3(-0.001317659742199,0.001803710358217,-0.000827325682621,0.001886369078420,0.000502920185681,0.000733091670554,0.002866364782676,-0.003242294769734,-0.002707686275244,0.002690136665478,-0.003413101658225,-0.002937110839412) * MODEL10_texOff(vec2(1,-1));
res += mat4x3(-0.000201764036319,0.000356836360879,-0.003124581649899,-0.003246352076530,0.000562424655072,0.003507484681904,-0.020686959847808,-0.004571532830596,0.004438120406121,-0.003182648681104,-0.003671019105241,0.008270247839391) * MODEL10_texOff(vec2(1,0));
res += mat4x3(0.001645679585636,0.003069563768804,0.001624994212762,-0.003115683328360,-0.003670362522826,-0.005077727138996,-0.003993701655418,-0.012063775211573,-0.022059913724661,0.000529728829861,0.000372573704226,0.000867718074005) * MODEL10_texOff(vec2(1,1));
res += mat4x3(0.002316385507584,0.004146740306169,0.003070351667702,-0.002074702642858,-0.001826219027862,-0.001868773484603,-0.000190948048839,0.000052265415434,0.000551406817976,-0.001165235531516,0.000790660735220,0.000152953842189) * MODEL11_texOff(vec2(-1,-1));
res += mat4x3(-0.001864414662123,-0.009263277053833,-0.004714795853943,0.005008593667299,0.005788477603346,-0.001864385209046,0.007111424114555,-0.000139147348818,0.000801077752840,0.003078216919675,0.002097242278978,-0.000732676766347) * MODEL11_texOff(vec2(-1,0));
res += mat4x3(-0.003132311860099,-0.002627343637869,0.006064339540899,-0.002395027317107,-0.002316669560969,-0.000125612801639,-0.002047144807875,-0.006740001030266,-0.000817647727672,-0.002489746082574,-0.001991182798520,0.000175564098754) * MODEL11_texOff(vec2(-1,1));
res += mat4x3(-0.002681501675397,-0.004960586316884,-0.002814616309479,-0.007829450070858,-0.006159383803606,0.003572045126930,-0.003752294927835,0.003911826293916,0.004518763162196,0.020337739959359,-0.005217260215431,-0.009841993451118) * MODEL11_texOff(vec2(0,-1));
res += mat4x3(-0.028957188129425,0.031886048614979,0.015954276546836,-0.025720937177539,0.025017775595188,0.031120726838708,0.041615795344114,-0.001098616630770,-0.024524169042706,-0.012205414474010,-0.013707304373384,0.013975238427520) * MODEL11_texOff(vec2(0,0));
res += mat4x3(0.017601268365979,0.010701716877520,-0.045295745134354,0.005680567119271,0.006967739202082,-0.015795450657606,0.011590972542763,-0.015678845345974,-0.014093732461333,0.004660755861551,0.004494355991483,-0.002468701684847) * MODEL11_texOff(vec2(0,1));
res += mat4x3(0.003268933156505,-0.000486086471938,-0.000256461353274,0.008304368704557,0.003058774862438,0.001090449513867,-0.000354669755325,0.000345222477335,-0.000313695461955,-0.006447184365243,-0.002351829316467,0.001872682711110) * MODEL11_texOff(vec2(1,-1));
res += mat4x3(0.012048185802996,-0.004342935048044,-0.001623551594093,0.004373814910650,-0.011620877310634,-0.003732712939382,-0.001233553630300,0.005723351147026,-0.001287755207159,-0.006335556041449,0.001791461836547,0.001078783068806) * MODEL11_texOff(vec2(1,0));
res += mat4x3(-0.003194517688826,-0.008166010491550,0.007154467049986,-0.002305824076757,-0.002938000485301,0.007927683182061,0.000088602595497,0.003247293410823,-0.006992079783231,0.002624065149575,0.000757897854783,-0.005979904439300) * MODEL11_texOff(vec2(1,1));
res += mat4x3(0.005472269840539,-0.000508832279593,-0.002403268823400,0.000479586655274,-0.001793800154701,-0.002316874451935,0.001384606701322,0.001251718844287,0.002130397828296,-0.002321728738025,0.000130235552206,0.000014242851648) * MODEL12_texOff(vec2(-1,-1));
res += mat4x3(-0.003129979362711,0.001359302201308,0.001344870543107,-0.001152651966549,-0.000380361132557,0.001502192579210,-0.017109991982579,-0.015436885878444,-0.007174321915954,-0.002657638164237,-0.003036892740056,-0.003896224312484) * MODEL12_texOff(vec2(-1,0));
res += mat4x3(-0.001098523498513,-0.001658323453739,0.000893197837286,0.000901463266928,0.001635426538996,0.001403071102686,-0.000097745622043,-0.002428072970361,-0.009957369416952,0.001040334696881,-0.000450803025160,-0.001203349442221) * MODEL12_texOff(vec2(-1,1));
res += mat4x3(-0.006070632487535,-0.003430451266468,-0.000801484624390,0.010389775037766,-0.003072858089581,-0.006333835422993,-0.005211629904807,-0.000200520837097,0.001027956954204,-0.010296925902367,-0.003246706677601,0.001794940326363) * MODEL12_texOff(vec2(0,-1));
res += mat4x3(-0.039510183036327,0.031776357442141,0.008535543456674,-0.014061930589378,0.001642635557801,0.013258365914226,-0.011898839846253,-0.014071036130190,-0.011161299422383,0.023219048976898,0.010913803242147,-0.006616164464504) * MODEL12_texOff(vec2(0,0));
res += mat4x3(0.005503120832145,0.021253613755107,-0.021383263170719,0.006811066064984,0.002514429856092,-0.015140813775361,0.000948808155954,-0.001575143309310,-0.006293358281255,-0.001313962624408,0.003773025469854,0.015758393332362) * MODEL12_texOff(vec2(0,1));
res += mat4x3(-0.003241534344852,0.002368788700551,0.003705242183059,0.000727719510905,-0.000300931103993,-0.000566409900784,0.002222427865490,0.000470182712888,0.000217973094550,0.004298129584640,0.000585258356296,-0.001305923098698) * MODEL12_texOff(vec2(1,-1));
res += mat4x3(0.009480414912105,0.006336960010231,-0.008856932632625,-0.001219228375703,-0.001734713790938,0.001499433186837,0.002641043160111,0.003812931478024,0.003745984984562,0.012423135340214,0.013344990089536,0.010992834344506) * MODEL12_texOff(vec2(1,0));
res += mat4x3(0.006015527993441,-0.002145894570276,-0.011205030605197,0.001202913350426,0.001141246291809,-0.000415718328441,-0.000486541772261,-0.000297014252283,0.000398324918933,0.001817496493459,0.003950690384954,0.007781495805830) * MODEL12_texOff(vec2(1,1));
return vec4(res, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV3
//!DESC [AiUpscale_Medium_3x_LineArt] sub-pixel convolution 3

vec4 hook()
{
vec3 res = vec3(0.000127382751089,0.000055007953051,0.000070107191277);
res += mat4x3(0.003332892432809,0.002106933388859,-0.000229738783673,-0.002382627688348,0.003610749728978,0.003885105252266,0.000873426382896,-0.001729405950755,-0.002283693989739,-0.001979397144169,0.000714807829354,-0.000403251295211) * MODEL7_texOff(vec2(-1,-1));
res += mat4x3(0.005906039848924,0.005533949472010,0.004660794511437,0.005062620621175,0.003178969956934,-0.007196101360023,0.003461518790573,0.004248079843819,0.002609164919704,0.000696701928973,-0.000868854054715,-0.004129882436246) * MODEL7_texOff(vec2(-1,0));
res += mat4x3(0.001684992923401,0.001884951023385,0.002754207700491,-0.001257035997696,-0.001737576792948,0.000657910364680,0.000200983224204,0.000127246399643,0.001106857089326,-0.000948069558945,0.000264551432338,0.000017415561160) * MODEL7_texOff(vec2(-1,1));
res += mat4x3(-0.023712575435638,-0.007229726761580,-0.001667486270890,-0.007011327892542,0.013364894315600,0.003939205314964,0.002656569005921,0.003138166852295,0.002265458228067,0.018777193501592,-0.006824335083365,-0.002147399587557) * MODEL7_texOff(vec2(0,-1));
res += mat4x3(-0.009340946562588,-0.029678756371140,-0.036480411887169,0.024444697424769,0.019899932667613,-0.044035848230124,-0.021218756213784,-0.024210812523961,-0.009689227677882,0.025018461048603,-0.044554870575666,0.017128041014075) * MODEL7_texOff(vec2(0,0));
res += mat4x3(0.002924800384790,0.006444911006838,0.004749807529151,-0.005238510202616,-0.005067652091384,0.001347990240902,0.003073948668316,0.004844592884183,-0.000480905262521,-0.004298292566091,-0.008020346984267,0.018123317509890) * MODEL7_texOff(vec2(0,1));
res += mat4x3(-0.001964988652617,0.001636595348828,0.000358549557859,-0.002787353470922,0.002669042907655,0.002142410725355,0.019034793600440,0.003792229341343,-0.001254433183931,-0.001676638261415,-0.003856963012367,-0.002043763408437) * MODEL7_texOff(vec2(1,-1));
res += mat4x3(-0.009824208915234,-0.015268644317985,-0.011712931096554,0.003699260763824,0.003259456483647,-0.007074688561261,-0.009256113320589,0.010800580494106,0.028953783214092,-0.013954933732748,-0.008550528436899,0.014548070728779) * MODEL7_texOff(vec2(1,0));
res += mat4x3(-0.002170492196456,-0.001237734570168,-0.003961968701333,-0.001713687204756,-0.001868439954706,-0.000086805208412,0.001221641316079,-0.002250823890790,-0.008300475776196,-0.000382317142794,0.003104009665549,0.001672160113230) * MODEL7_texOff(vec2(1,1));
res += mat4x3(-0.004323681816459,-0.002532419515774,-0.001472360803746,-0.002534792525694,0.004180237650871,0.004399560391903,-0.002532210899517,-0.001107530086301,-0.000607260910328,0.003816993441433,0.002016725251451,0.000963320897426) * MODEL8_texOff(vec2(-1,-1));
res += mat4x3(0.006240237969905,0.000101334764622,-0.008483665995300,-0.003714637598023,-0.005623491480947,-0.008056554012001,-0.006860942114145,-0.006561358459294,-0.005031629465520,-0.000096140880487,0.002227397635579,0.004112890921533) * MODEL8_texOff(vec2(-1,0));
res += mat4x3(0.001920341048390,0.000074375268014,-0.001465824665502,0.001703727291897,0.000504680443555,-0.002916308119893,-0.000440056930529,-0.002378859091550,-0.005499189719558,-0.000148183753481,-0.000331819697749,-0.000524437869899) * MODEL8_texOff(vec2(-1,1));
res += mat4x3(-0.019234443083405,-0.001975543564186,0.005723676178604,-0.024419618770480,-0.012789558619261,-0.002990640699863,0.006069311872125,0.002175814937800,0.000648192130029,-0.011268734931946,-0.000708661042154,0.001565583399497) * MODEL8_texOff(vec2(0,-1));
res += mat4x3(-0.001814503688365,0.040938962250948,0.009281037375331,0.036090597510338,0.013931502588093,-0.018659576773643,0.016478274017572,0.016664247959852,0.012820169329643,0.009921642020345,-0.006814568769187,-0.017073854804039) * MODEL8_texOff(vec2(0,0));
res += mat4x3(0.001315355882980,-0.003243190003559,-0.022496918216348,-0.002077701035887,0.007280382793397,0.023435993120074,0.002268660115078,0.005798977799714,0.012172941118479,0.001206788467243,0.008695264346898,0.013884825631976) * MODEL8_texOff(vec2(0,1));
res += mat4x3(0.006013783626258,-0.001186142791994,0.000296701793559,-0.003571147331968,-0.003319851122797,-0.000604071654379,-0.002737875096500,-0.000152559165144,-0.000220398782403,-0.010738291777670,-0.001721341279335,-0.001053605694324) * MODEL8_texOff(vec2(1,-1));
res += mat4x3(-0.007506570778787,-0.012723410502076,0.006305230781436,0.000863581662998,0.008766864426434,0.004448991734535,-0.030703477561474,-0.024140488356352,-0.011686075478792,-0.022408572956920,-0.030337614938617,-0.025516483932734) * MODEL8_texOff(vec2(1,0));
res += mat4x3(-0.001978104934096,0.002964879153296,0.007413544692099,-0.005117201711982,-0.011726208962500,-0.010995740070939,-0.000158340058988,-0.008764157071710,-0.022502033039927,-0.002869039308280,-0.003687038552016,-0.010489949025214) * MODEL8_texOff(vec2(1,1));
res += mat4x3(0.002129429718480,-0.000002272065331,-0.000241639907472,-0.006773981265724,-0.003057913389057,-0.000828321499284,0.000226492062211,0.001980465603992,0.002440523123369,-0.001973270205781,0.000005425352356,0.000567232258618) * MODEL9_texOff(vec2(-1,-1));
res += mat4x3(0.004902793560177,0.005968253593892,0.005069186445326,-0.006602331530303,-0.008502920158207,-0.008396904915571,-0.000294536497677,0.000183801341336,-0.003094293409958,0.001990129938349,-0.000975476752501,-0.003522315993905) * MODEL9_texOff(vec2(-1,0));
res += mat4x3(-0.000109291882836,0.001539218355902,0.002934490330517,0.002207079203799,0.000698747695424,-0.003029881510884,-0.000135638358188,0.000231716054259,-0.001229435903952,0.000711040513124,0.000644319748972,0.000521024514455) * MODEL9_texOff(vec2(-1,1));
res += mat4x3(-0.011886787600815,-0.003371985862032,0.000111571505840,0.005827721673995,-0.008121314458549,-0.007651447784156,0.035808652639389,-0.026110647246242,-0.016640169546008,-0.027741305530071,-0.004098137840629,0.009697685018182) * MODEL9_texOff(vec2(0,-1));
res += mat4x3(-0.003020562697202,-0.010528107173741,-0.015796992927790,0.021272698417306,0.029905334115028,0.026198724284768,-0.008782261051238,-0.013127414509654,0.017936354503036,-0.026149891316891,0.016452023759484,0.036539871245623) * MODEL9_texOff(vec2(0,0));
res += mat4x3(-0.003508720314130,-0.004544565454125,-0.001239397213794,-0.004763709846884,-0.003707069903612,0.004588986281306,0.003176136640832,0.004157332703471,-0.001456261379644,0.003783246502280,0.002781224204227,-0.006387041881680) * MODEL9_texOff(vec2(0,1));
res += mat4x3(0.001112406607717,0.001316482201219,0.000892497482710,-0.007377980276942,-0.004565253853798,-0.001436596852727,0.008932297118008,0.007744730915874,-0.007583776954561,-0.004219576250762,-0.004904957953840,0.001689619151875) * MODEL9_texOff(vec2(1,-1));
res += mat4x3(0.013911573216319,0.012520763091743,0.006028168369085,-0.000344330124790,0.000278225430520,-0.001769910333678,-0.001533209113404,-0.005841093603522,-0.008116210810840,-0.001948706340045,-0.002151557011530,0.004216098226607) * MODEL9_texOff(vec2(1,0));
res += mat4x3(-0.002072727307677,0.000736122834496,0.008055801503360,-0.004968161229044,-0.008277257904410,-0.006019174586982,0.000352839560946,0.001260025077499,-0.000061791361077,0.001038395683281,0.000013322442101,-0.000929319532588) * MODEL9_texOff(vec2(1,1));
res += mat4x3(0.002655495656654,-0.003104513743892,0.000169668754097,-0.004859837703407,-0.002541319234297,-0.000926625682041,0.000381015561288,0.000913295196369,0.000825838185847,0.001354922540486,-0.000852572266012,-0.001071360311471) * MODEL10_texOff(vec2(-1,-1));
res += mat4x3(-0.002283718436956,0.005971555598080,0.010899310931563,-0.005102979950607,-0.004587186034769,-0.004801666364074,0.003666072851047,0.001540904515423,0.000075931253377,-0.003976773936301,0.002437769668177,0.002776272362098) * MODEL10_texOff(vec2(-1,0));
res += mat4x3(-0.005547098815441,-0.003457188606262,0.001548614818603,0.000861647073179,-0.001550475019030,-0.003668957389891,0.000433470879216,0.002521704416722,0.004730363376439,0.002323658438399,-0.000242293055635,-0.002404587576166) * MODEL10_texOff(vec2(-1,1));
res += mat4x3(-0.040336932986975,0.002066378947347,0.013940080069005,0.016557309776545,0.004951742012054,0.000009592213246,0.001072867191397,0.003490761620924,-0.000031135859899,-0.001353439409286,-0.007066783960909,-0.005244481377304) * MODEL10_texOff(vec2(0,-1));
res += mat4x3(0.027151171118021,0.017227485775948,-0.039709780365229,0.019296867772937,0.034150000661612,0.033714916557074,-0.024334615096450,-0.020980749279261,-0.008952389471233,-0.037945542484522,0.016552327200770,0.026172429323196) * MODEL10_texOff(vec2(0,0));
res += mat4x3(-0.002687310799956,-0.003302925499156,0.006274187006056,0.000858426035848,-0.002623242326081,0.002232541795820,-0.002523350063711,-0.007232090458274,-0.016846081241965,0.005951050203294,0.013358575291932,-0.010177046991885) * MODEL10_texOff(vec2(0,1));
res += mat4x3(0.009911078028381,0.005104070529342,-0.002247121883556,0.000834880338516,0.000174499713467,0.001946839503944,-0.009772517718375,-0.003367982571945,-0.002423470839858,0.004117313306779,-0.006197712384164,-0.004144455771893) * MODEL10_texOff(vec2(1,-1));
res += mat4x3(-0.006620185449719,-0.006096506491303,0.000614365504589,0.023323969915509,0.019804354757071,0.008545932359993,-0.020513067021966,-0.030585417523980,-0.023627605289221,-0.009871833026409,-0.006513691507280,0.018848957493901) * MODEL10_texOff(vec2(1,0));
res += mat4x3(0.002418343909085,0.001831502653658,-0.002283544978127,-0.001057839370333,0.002425097627565,0.011548114940524,-0.000265530135948,0.000866245653015,-0.005867687519640,0.002672111615539,0.001754231168889,0.004333022981882) * MODEL10_texOff(vec2(1,1));
res += mat4x3(0.001749088172801,0.003429547185078,0.002565404633060,0.000741877476685,-0.001875061658211,-0.002699018688872,0.000132206390845,-0.000478973233839,-0.000384877988836,0.001474126474932,0.001358449808322,0.000237297688727) * MODEL11_texOff(vec2(-1,-1));
res += mat4x3(-0.005919361021370,-0.004721359349787,-0.001824239967391,0.000532863894477,0.002659061457962,0.002749055856839,0.002309676492587,0.001776766497642,0.001338255824521,0.001202094834298,0.003646134864539,0.004499010276049) * MODEL11_texOff(vec2(-1,0));
res += mat4x3(-0.002637898083776,-0.001253608381376,-0.001038231304847,-0.002125697908923,-0.002240846166387,0.000046990171541,-0.001663946779445,-0.002864074194804,-0.002523300470784,-0.001821427140385,-0.002560395281762,-0.001844547572546) * MODEL11_texOff(vec2(-1,1));
res += mat4x3(-0.007502158172429,-0.003675130428746,-0.001226707128808,0.018767287954688,-0.001001345575787,-0.001279047573917,-0.003907219972461,0.004133800510317,0.004160773474723,0.006198703777045,0.002750070765615,-0.003358768299222) * MODEL11_texOff(vec2(0,-1));
res += mat4x3(0.033432055264711,0.024146823212504,-0.011221109889448,-0.026236858218908,-0.023096015676856,0.017807383090258,0.035749271512032,-0.010042900219560,-0.020092602819204,0.000073671690188,-0.012694980949163,-0.009090455248952) * MODEL11_texOff(vec2(0,0));
res += mat4x3(0.006869202945381,-0.014109439216554,-0.011486754752696,0.001570680178702,0.007828786969185,0.005032111890614,0.004527033306658,-0.015242895111442,-0.000127078586956,0.001270949374884,0.004119304940104,0.003010471584275) * MODEL11_texOff(vec2(0,1));
res += mat4x3(0.009367963299155,0.000117110394058,-0.001215866184793,-0.010322717949748,0.010970071889460,0.004576473496854,-0.001655128900893,0.000629329471849,0.001439622952603,0.008456726558506,-0.009711164049804,-0.008007661439478) * MODEL11_texOff(vec2(1,-1));
res += mat4x3(-0.012253861874342,-0.017292374745011,0.008849365636706,0.026760477572680,-0.001524712191895,-0.035736262798309,0.008877811022103,0.013644336722791,-0.006494096945971,-0.011829309165478,0.006244473159313,0.025544017553329) * MODEL11_texOff(vec2(1,0));
res += mat4x3(-0.005671977065504,0.007525878027081,0.020000709220767,-0.001419191015884,-0.004150982946157,0.009612017311156,0.007763536181301,0.001561197335832,-0.019257064908743,0.005105484742671,0.000112748995889,-0.009731703437865) * MODEL11_texOff(vec2(1,1));
res += mat4x3(0.002720556221902,-0.000969947548583,-0.002319824881852,-0.000847949122544,-0.001339668990113,-0.001402512076311,-0.014856426045299,-0.008472978137434,-0.001768362242728,-0.001234007999301,-0.001797791919671,-0.001352507970296) * MODEL12_texOff(vec2(-1,-1));
res += mat4x3(-0.000350719783455,0.002653539646417,-0.002914557000622,0.003053568303585,0.001205145614222,-0.000755026529077,-0.016245568171144,-0.020941419526935,-0.022374365478754,-0.002356191165745,-0.002520546317101,-0.001384513801895) * MODEL12_texOff(vec2(-1,0));
res += mat4x3(-0.001247221138328,-0.001360201044008,-0.001992129487917,-0.000387689244235,0.000624787586275,0.003304341807961,-0.000756791210733,-0.003084251889959,-0.007139991968870,0.000672527647112,0.000577467377298,0.000066686690843) * MODEL12_texOff(vec2(-1,1));
res += mat4x3(-0.001436220714822,-0.004726121202111,-0.001839126343839,0.009374504908919,-0.002829662058502,-0.006304746493697,-0.001547712134197,-0.001402587513439,0.000217305292608,0.017915138974786,0.003792134579271,0.000073670969869) * MODEL12_texOff(vec2(0,-1));
res += mat4x3(-0.036774225533009,0.015033168718219,0.017901038751006,-0.020737050101161,-0.003414097940549,0.012296422384679,0.022026700899005,0.018317377194762,0.007851473987103,0.010385149158537,0.023259472101927,0.029600471258163) * MODEL12_texOff(vec2(0,0));
res += mat4x3(0.002524820622057,0.014535392634571,-0.000882747350261,0.006748795509338,0.001020428142510,-0.016806222498417,0.001988276373595,0.006538427434862,0.013874328695238,-0.000394718721509,-0.000664043647703,0.001408486044966) * MODEL12_texOff(vec2(0,1));
res += mat4x3(-0.006850831676275,0.001904927776195,0.003965318668634,0.004727012943476,-0.001421860535629,-0.002727794693783,-0.002576292259619,-0.002109340159222,-0.000710742198862,0.016832273453474,0.006157977506518,0.000135743597639) * MODEL12_texOff(vec2(1,-1));
res += mat4x3(0.005862214136869,0.022276159375906,-0.013929112814367,0.003143735462800,0.006239077541977,0.008577490225434,-0.004727307707071,-0.004588223993778,-0.004665410611778,-0.003882641904056,0.009080278687179,0.021758157759905) * MODEL12_texOff(vec2(1,0));
res += mat4x3(0.009342655539513,0.004818585235626,-0.026472089812160,0.003598283976316,0.002940500155091,-0.000200076727197,-0.001585251302458,-0.003178994171321,-0.004489633720368,0.000363293627743,-0.002025937894359,-0.006629250943661) * MODEL12_texOff(vec2(1,1));
return vec4(res, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 2.200 * > OUTPUT.h LUMA.h 2.200 * > *
//!WIDTH LUMA.w 3 *
//!HEIGHT LUMA.h 3 *
//!BIND SUBCONV1
//!BIND SUBCONV2
//!BIND SUBCONV3
//!BIND LANCZOS3
//!DESC [AiUpscale_Medium_3x_LineArt] depth to space

vec4 hook()
{
vec2 fcoord = fract(SUBCONV1_pos * SUBCONV1_size);
vec2 base = SUBCONV1_pos + (vec2(0.5) - fcoord) * SUBCONV1_pt;
ivec2 index = ivec2(fcoord * vec2(3));
mat3 res = mat3(SUBCONV1_tex(base).rgb,SUBCONV2_tex(base).rgb,SUBCONV3_tex(base).rgb);
return vec4(res[index.x][index.y] + float(LANCZOS3_texOff(0)), 0, 0, 1);
}
